Author: Manuel Jacob <[email protected]>
Branch: py3.3
Changeset: r78589:5d8ec598c9cd
Date: 2015-07-17 18:39 +0200
http://bitbucket.org/pypy/pypy/changeset/5d8ec598c9cd/

Log:    Fix test.

diff --git a/pypy/objspace/std/test/test_typeobject.py 
b/pypy/objspace/std/test/test_typeobject.py
--- a/pypy/objspace/std/test/test_typeobject.py
+++ b/pypy/objspace/std/test/test_typeobject.py
@@ -763,7 +763,7 @@
         class C(metaclass=T):
             pass
         assert d
-        assert sorted(d[0].keys()) == ['__dict__', '__doc__', '__module__', 
'__weakref__']
+        assert sorted(d[0].keys()) == ['__dict__', '__doc__', '__module__', 
'__qualname__', '__weakref__']
         d = []
         class T(type):
             def mro(cls):
diff --git a/pypy/tool/pytest/appsupport.py b/pypy/tool/pytest/appsupport.py
--- a/pypy/tool/pytest/appsupport.py
+++ b/pypy/tool/pytest/appsupport.py
@@ -179,7 +179,7 @@
             try:
                 source = runner.statement
                 source = str(source).strip()
-            except py.error.ENOENT:
+            except (py.error.ENOENT, SyntaxError):
                 source = None
             from pypy import conftest
             if source and py.test.config._assertstate.mode != "off":
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to