From: Benjamin Peterson Date: Sat, 4 Apr 2009 16:46:24 +0000 (+0000) Subject: mark dictionary assertElementsSame test as an expected failure X-Git-Tag: v3.1a2~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3bb6b7a5cd0019afd561e32c06b2dedae8cc3e23;p=thirdparty%2FPython%2Fcpython.git mark dictionary assertElementsSame test as an expected failure --- diff --git a/Lib/test/test_unittest.py b/Lib/test/test_unittest.py index a9e84506d3ba..5e601d071192 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]])