Author: Philip Jenvey <[email protected]>
Branch: stdlib-2.7.11
Changeset: r83287:1a5942445daa
Date: 2016-03-22 19:42 -0700
http://bitbucket.org/pypy/pypy/changeset/1a5942445daa/

Log:    PyPy doesn't crash here which is good enough

diff --git a/lib-python/2.7/test/test_compile.py 
b/lib-python/2.7/test/test_compile.py
--- a/lib-python/2.7/test/test_compile.py
+++ b/lib-python/2.7/test/test_compile.py
@@ -568,7 +568,13 @@
             fn = os.path.join(tmpd, "bad.py")
             with open(fn, "wb") as fp:
                 fp.write(src)
-            rc, out, err = script_helper.assert_python_failure(fn)
+            try:
+                rc, out, err = script_helper.assert_python_failure(fn)
+            except AssertionError:
+                if check_impl_detail(pypy=True):
+                    # as long as we don't crash
+                    return
+                raise
         finally:
             test_support.rmtree(tmpd)
         self.assertIn(b"Non-ASCII", err)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to