[pypy-commit] pypy stdlib-2.7.8: adjust this test for pypy

bdkearns noreply at buildbot.pypy.org
Thu Aug 28 20:12:13 CEST 2014


Author: Brian Kearns <bdkearns at gmail.com>
Branch: stdlib-2.7.8
Changeset: r73113:0bdbb7cefe56
Date: 2014-08-28 14:11 -0400
http://bitbucket.org/pypy/pypy/changeset/0bdbb7cefe56/

Log:	adjust this test for pypy

diff --git a/lib-python/2.7/idlelib/idle_test/test_delegator.py b/lib-python/2.7/idlelib/idle_test/test_delegator.py
--- a/lib-python/2.7/idlelib/idle_test/test_delegator.py
+++ b/lib-python/2.7/idlelib/idle_test/test_delegator.py
@@ -14,8 +14,8 @@
         # add an attribute:
         self.assertRaises(AttributeError, mydel.__getattr__, 'xyz')
         bl = mydel.bit_length
-        self.assertIs(bl, int.bit_length)
-        self.assertIs(mydel.__dict__['bit_length'], int.bit_length)
+        self.assertEqual(bl, int.bit_length)
+        self.assertEqual(mydel.__dict__['bit_length'], int.bit_length)
         self.assertEqual(mydel._Delegator__cache, {'bit_length'})
 
         # add a second attribute


More information about the pypy-commit mailing list