Commits

Benjamin Peterson  committed 458ebe4

mark dictionary assertElementsSame test as an expected failure

  • Participants
  • Parent commits adbde5c

Comments (0)

Files changed (1)

File Lib/test/test_unittest.py

             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((), ())
 
         # 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]])