diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-04-04 16:46:24 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-04-04 16:46:24 (GMT) |
commit | 3bb6b7a5cd0019afd561e32c06b2dedae8cc3e23 (patch) | |
tree | b5ee9386c1b8b6445a18a227b2d78eeece79f346 /Lib/test/test_unittest.py | |
parent | 4f75b643994037c5971fefaaf94baa70c1b7c724 (diff) | |
download | cpython-3bb6b7a5cd0019afd561e32c06b2dedae8cc3e23.zip cpython-3bb6b7a5cd0019afd561e32c06b2dedae8cc3e23.tar.gz cpython-3bb6b7a5cd0019afd561e32c06b2dedae8cc3e23.tar.bz2 |
mark dictionary assertElementsSame test as an expected failure
Diffstat (limited to 'Lib/test/test_unittest.py')
-rw-r--r-- | Lib/test/test_unittest.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_unittest.py b/Lib/test/test_unittest.py index a9e8450..5e601d0 100644 --- a/Lib/test/test_unittest.py +++ b/Lib/test/test_unittest.py @@ -2392,6 +2392,8 @@ class Test_TestCase(TestCase, TestEquality, TestHashing): self.assertRaises(self.failureException, self.assertEqual, a, b, msg='foo') + # The fact that dictionaries are unorderable breaks this test for them. + @expectedFailure def testEquality(self): self.assertListEqual([], []) self.assertTupleEqual((), ()) @@ -2454,6 +2456,7 @@ class Test_TestCase(TestCase, TestEquality, TestHashing): # Test that sequences of unhashable objects can be tested for sameness: self.assertSameElements([[1, 2], [3, 4]], [[3, 4], [1, 2]]) + self.assertSameElements([{'a': 1}, {'b': 2}], [{'b': 2}, {'a': 1}]) self.assertRaises(self.failureException, self.assertSameElements, [[1]], [[2]]) |