[pypy-commit] pypy py3.5: fix test

arigo pypy.commits at gmail.com
Tue Dec 6 10:42:58 EST 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: py3.5
Changeset: r88911:18e8a3f27525
Date: 2016-12-06 16:42 +0100
http://bitbucket.org/pypy/pypy/changeset/18e8a3f27525/

Log:	fix test

diff --git a/lib-python/3/test/test_reprlib.py b/lib-python/3/test/test_reprlib.py
--- a/lib-python/3/test/test_reprlib.py
+++ b/lib-python/3/test/test_reprlib.py
@@ -407,7 +407,8 @@
         wrapped = MyContainer3.wrapped
         wrapper = MyContainer3.wrapper
         for name in assigned:
-            self.assertIs(getattr(wrapper, name), getattr(wrapped, name))
+            # pypy fix: can't use assertIs() to compare two strings
+            self.assertEqual(getattr(wrapper, name), getattr(wrapped, name))
 
 if __name__ == "__main__":
     unittest.main()


More information about the pypy-commit mailing list