summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-15 11:38:30 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-15 11:38:30 +0100
commit35443610b1b47d148b84bcbcd1d8548a64c1fb3b (patch)
tree12b4070a57f1b90d93df7b51f249319e571e77a5
parent45b4cc77dd99d2c569d34f37d6cf2be3567c0ad5 (diff)
downloadmicropython-35443610b1b47d148b84bcbcd1d8548a64c1fb3b.tar.gz
micropython-35443610b1b47d148b84bcbcd1d8548a64c1fb3b.zip
travis: More tests debugging.
-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: