[Python-checkins] r71172 - python/branches/py3k/Lib/test/test_unittest.py

benjamin.peterson python-checkins at python.org
Sat Apr 4 18:46:24 CEST 2009


Author: benjamin.peterson
Date: Sat Apr 4 18:46:24 2009
New Revision: 71172
Log:
mark dictionary assertElementsSame test as an expected failure
Modified:
 python/branches/py3k/Lib/test/test_unittest.py
Modified: python/branches/py3k/Lib/test/test_unittest.py
==============================================================================
--- python/branches/py3k/Lib/test/test_unittest.py	(original)
+++ python/branches/py3k/Lib/test/test_unittest.py	Sat Apr 4 18:46:24 2009
@@ -2392,6 +2392,8 @@
 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 @@
 
 # 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]])
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /