From 45b4cc77dd99d2c569d34f37d6cf2be3567c0ad5 Mon Sep 17 00:00:00 2001
From: Damien George <damien.p.george@gmail.com>
Date: Tue, 15 Apr 2014 11:25:36 +0100
Subject: [PATCH] travis: Debugging failing tests.

---
 .travis.yml                 | 5 ++++-
 tests/basics/memoryerror.py | 1 +
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 4c2a577ac..4411aae9e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,4 +16,7 @@ script:
   - make -C stmhal
   - cd tests && MICROPY_CPYTHON3=python3.3 ./run-tests
 
-after_failure: cd tests && for exp in *.exp; do testbase=$(basename $exp .exp); echo -e "\nFAILURE $testbase"; diff $testbase.exp $testbase.out; done
+after_failure:
+  - cat tests/memoryerror.py.exp
+  - cat tests/memoryerror.py.out
+  - cd tests && for exp in *.exp; do testbase=$(basename $exp .exp); echo -e "\nFAILURE $testbase"; diff $testbase.exp $testbase.out; done
diff --git a/tests/basics/memoryerror.py b/tests/basics/memoryerror.py
index b4be420c3..0aea8f337 100644
--- a/tests/basics/memoryerror.py
+++ b/tests/basics/memoryerror.py
@@ -1,4 +1,5 @@
 l = list(range(10000))
+hex(1)
 try:
     100000000 * l
 except MemoryError:
-- 
GitLab