diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-15 11:38:30 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-15 11:38:30 +0100 |
commit | 35443610b1b47d148b84bcbcd1d8548a64c1fb3b (patch) | |
tree | 12b4070a57f1b90d93df7b51f249319e571e77a5 | |
parent | 45b4cc77dd99d2c569d34f37d6cf2be3567c0ad5 (diff) | |
download | micropython-35443610b1b47d148b84bcbcd1d8548a64c1fb3b.tar.gz micropython-35443610b1b47d148b84bcbcd1d8548a64c1fb3b.zip |
travis: More tests debugging.
-rw-r--r-- | tests/basics/memoryerror.py | 5 | ||||
-rwxr-xr-x | tests/run-tests | 2 |
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: |