summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--tests/basics/memoryerror.py5
-rwxr-xr-xtests/run-tests2
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/basics/memoryerror.py b/tests/basics/memoryerror.py
index 0aea8f337a..1c93ec63ca 100644
--- a/tests/basics/memoryerror.py
+++ b/tests/basics/memoryerror.py
@@ -1,5 +1,8 @@
l = list(range(10000))
-hex(1)
+try:
+ hex(1)
+except NameError:
+ print("NameError")
try:
100000000 * l
except MemoryError:
diff --git a/tests/run-tests b/tests/run-tests
index 554f5134c5..c95c302779 100755
--- a/tests/run-tests
+++ b/tests/run-tests
@@ -70,6 +70,8 @@ for test_file in tests:
rm_f(os.path.basename(test_file + ".exp"))
rm_f(os.path.basename(test_file + ".out"))
else:
+ print('EXP|{}|'.format(output_expected))
+ print('OUT|{}|'.format(output_mupy))
with open(os.path.basename(test_file + ".exp"), "w") as f:
f.write(str(output_expected, "ascii"))
with open(os.path.basename(test_file + ".out"), "w") as f: