found the memory-critical pieces. also removed old debug code

This commit is contained in:
David Halter
2012-08-13 16:45:33 +02:00
parent e6f6003476
commit 37b5f2cb93
6 changed files with 7 additions and 31 deletions

View File

@@ -9,8 +9,8 @@ sys.path.append('.')
import functions
from _compatibility import unicode, BytesIO
only_line = int(sys.argv[2]) if len(sys.argv) > 2 else None
if only_line is not None:
only_line = [int(o) for o in sys.argv[2:]]
if only_line:
import debug
debug.debug_function = \
functions.debug.print_to_stdout
@@ -164,7 +164,7 @@ def run_test(source, f_name):
correct = None
else:
# reset the test, if only one specific test is wanted
if only_line and line_nr != only_line:
if only_line and line_nr not in only_line:
correct = None
return tests, fails
@@ -209,5 +209,6 @@ print('\nSummary:')
for s in summary:
print(s)
exit_code = 0 if tests_pass else 1
sys.exit(exit_code)