From 35443610b1b47d148b84bcbcd1d8548a64c1fb3b Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 15 Apr 2014 11:38:30 +0100 Subject: [PATCH] travis: More tests debugging. --- tests/basics/memoryerror.py | 5 ++++- tests/run-tests | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) 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: