diff options
| author | Alexandre Vassalotti <alexandre@peadrop.com> | 2009-06-12 23:03:35 (GMT) |
|---|---|---|
| committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2009-06-12 23:03:35 (GMT) |
| commit | cb73bdac9565e7d4a9133635f802f446a915ca88 (patch) | |
| tree | d87c607a7fdbd52c215b4c5a9d7cc640d94b2e36 /Lib/test/test_collections.py | |
| parent | 450ae573bcf3b8b9e910dacf5dcf640cced44b97 (diff) | |
| download | cpython-cb73bdac9565e7d4a9133635f802f446a915ca88.zip cpython-cb73bdac9565e7d4a9133635f802f446a915ca88.tar.gz cpython-cb73bdac9565e7d4a9133635f802f446a915ca88.tar.bz2 | |
Revert r73401 per Raymond Hettinger's request.
The rational is the change might cause imcompatiblity problems with
PyYAML. In addition, Raymond wants to kept the different versions of
collections synchronized across Python versions.
Diffstat (limited to 'Lib/test/test_collections.py')
| -rw-r--r-- | Lib/test/test_collections.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_collections.py b/Lib/test/test_collections.py index b108f95..1c49876 100644 --- a/Lib/test/test_collections.py +++ b/Lib/test/test_collections.py @@ -795,9 +795,9 @@ class TestOrderedDict(unittest.TestCase): # do not save instance dictionary if not needed pairs = [('c', 1), ('b', 2), ('a', 3), ('d', 4), ('e', 5), ('f', 6)] od = OrderedDict(pairs) + self.assertEqual(len(od.__reduce__()), 2) od.x = 10 - self.assertGreaterEqual(len(od.__reduce__()), 2) - self.assertLessEqual(len(od.__reduce__()), 5) + self.assertEqual(len(od.__reduce__()), 3) def test_repr(self): od = OrderedDict([('c', 1), ('b', 2), ('a', 3), ('d', 4), ('e', 5), ('f', 6)]) |
