Commit 3bb6b7a5 authored by Benjamin Peterson's avatar Benjamin Peterson

mark dictionary assertElementsSame test as an expected failure

parent 4f75b643
......@@ -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]])
......
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