[pypy-commit] pypy py3.3: Fix tests to pass with -A and CPython3.3

amauryfa noreply at buildbot.pypy.org
Tue Dec 30 22:27:12 CET 2014


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3.3
Changeset: r75170:edc9c50db790
Date: 2014-12-30 19:30 +0100
http://bitbucket.org/pypy/pypy/changeset/edc9c50db790/

Log:	Fix tests to pass with -A and CPython3.3

diff --git a/pypy/interpreter/test/test_compiler.py b/pypy/interpreter/test/test_compiler.py
--- a/pypy/interpreter/test/test_compiler.py
+++ b/pypy/interpreter/test/test_compiler.py
@@ -838,7 +838,8 @@
         assert getattr(T, '\u03bc') == 2
         assert getattr(T, '\u87d2') == 3
         #assert getattr(T, 'x\U000E0100') == 4
-        expected = ("['__dict__', '__doc__', '__module__', '__weakref__', "
+        expected = ("['__dict__', '__doc__', '__module__', "
+                    "'__qualname__', '__weakref__', "
         #            "x󠄀", "'ä', 'μ', '蟒']")
                     "'ä', 'μ', '蟒']")
         assert expected in str(sorted(T.__dict__.keys()))
diff --git a/pypy/interpreter/test/test_module.py b/pypy/interpreter/test/test_module.py
--- a/pypy/interpreter/test/test_module.py
+++ b/pypy/interpreter/test/test_module.py
@@ -89,7 +89,7 @@
         import os
 
         assert sys.__package__ is None
-        assert os.__package__ is None
+        assert os.__package__ == ''
         assert not hasattr(type(sys)('foo'), '__package__')
 
     def test_name_nonascii(self):


More information about the pypy-commit mailing list