Kaydet (Commit) 5f8b0f5c authored tarafından Christian Heimes's avatar Christian Heimes

Issue #19664: test_userdict's repr test no longer depends on the order

of dict elements.
Original patch by Serhiy Storchaka
üst ba723200
......@@ -45,7 +45,8 @@ class UserDictTest(mapping_tests.TestHashMappingProtocol):
# Test __repr__
self.assertEqual(str(u0), str(d0))
self.assertEqual(repr(u1), repr(d1))
self.assertEqual(repr(u2), repr(d2))
self.assertIn(repr(u2), ("{'one': 1, 'two': 2}",
"{'two': 2, 'one': 1}"))
# Test rich comparison and __len__
all = [d0, d1, d2, u, u0, u1, u2, uu, uu0, uu1, uu2]
......
......@@ -306,6 +306,9 @@ Library
Tests
-----
- Issue #19664: test_userdict's repr test no longer depends on the order
of dict elements.
- Issue #19440: Clean up test_capi by removing an unnecessary __future__
import, converting from test_main to unittest.main, and running the
_testcapi module tests as subTests of a unittest TestCase method.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment