[pypy-svn] rev 2361 - pypy/trunk/src/pypy/objspace/std/test
alex at codespeak.net
alex at codespeak.net
Tue Dec 16 13:11:01 CET 2003
Author: alex
Date: Tue Dec 16 13:11:00 2003
New Revision: 2361
Modified:
pypy/trunk/src/pypy/objspace/std/test/test_dictobject.py
Log:
inserted a comment to draw attention to possible variations of dict
representations
Modified: pypy/trunk/src/pypy/objspace/std/test/test_dictobject.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/std/test/test_dictobject.py (original)
+++ pypy/trunk/src/pypy/objspace/std/test/test_dictobject.py Tue Dec 16 13:11:00 2003
@@ -308,11 +308,13 @@
self.assertEqual('{}', str({}))
self.assertEqual('{1: 2}', str({1: 2}))
self.assertEqual("{'ba': 'bo'}", str({'ba': 'bo'}))
- self.assertEqual("{1: 2, 'ba': 'bo'}", str({1: 2, 'ba': 'bo'}))
+ # NOTE: the string repr depends on hash values of 1 and 'ba'!!!
+ twoitemsrepr = "{1: 2, 'ba': 'bo'}"
+ self.assertEqual(twoitemsrepr, str({1: 2, 'ba': 'bo'}))
self.assertEqual('{}', repr({}))
self.assertEqual('{1: 2}', repr({1: 2}))
self.assertEqual("{'ba': 'bo'}", repr({'ba': 'bo'}))
- self.assertEqual("{1: 2, 'ba': 'bo'}", repr({1: 2, 'ba': 'bo'}))
+ self.assertEqual(twoitemsrepr, repr({1: 2, 'ba': 'bo'}))
def tooslow_test_new(self):
d = dict()
More information about the Pypy-commit
mailing list