Author: Armin Rigo <[email protected]>
Branch: kill-someobject
Changeset: r58070:077647c293a7
Date: 2012-10-12 18:22 +0200
http://bitbucket.org/pypy/pypy/changeset/077647c293a7/

Log:    Ah ah, we can get 'Aborted (core dumped)' too. General fix.

diff --git a/pypy/translator/c/test/test_genc.py 
b/pypy/translator/c/test/test_genc.py
--- a/pypy/translator/c/test/test_genc.py
+++ b/pypy/translator/c/test/test_genc.py
@@ -138,10 +138,8 @@
             print '--------------'
             stderr, prevline, lastline, empty = stderr.rsplit('\n', 3)
             assert empty == ''
-            if lastline == 'Aborted':
-                lastline = prevline
-            assert lastline == ('Fatal RPython error: ' +
-                                expected_exception_name)
+            expected = 'Fatal RPython error: ' + expected_exception_name
+            assert lastline == expected or prevline == expected
             return None
 
         output(stdout)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to