git @ Cat's Eye Technologies
yucca
/
2ad8402
Give feedback when running internal tests.
catseye
12 years ago
1 changed file(s) with
6 addition(s)
and
2 deletion(s)
.
Raw diff
Collapse all
Expand all
+6
-2
src/yucca/main.py
less
more
602
602
603
603
if options.test:
604
604
import doctest
605
doctest.testmod()
606
sys.exit(0)
605
(fails, something) = doctest.testmod()
606
if fails == 0:
607
print "All tests passed."
608
sys.exit(0)
609
else:
610
sys.exit(1)
607
611
608
612
p = BasicProgram()
609
613
text_file_line = 1