diff options
author | Raymond Hettinger <python@rcn.com> | 2009-03-19 20:30:56 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2009-03-19 20:30:56 (GMT) |
commit | dc879f033c9a1fd15e27f7bac2a46d38ca19e8c5 (patch) | |
tree | cc2961e67f2e7346aad00ce35308df4eb29ad2a8 /Lib/test/test_collections.py | |
parent | 6cf17aacbfd08aab5edc73c758647536c1576601 (diff) | |
download | cpython-dc879f033c9a1fd15e27f7bac2a46d38ca19e8c5.zip cpython-dc879f033c9a1fd15e27f7bac2a46d38ca19e8c5.tar.gz cpython-dc879f033c9a1fd15e27f7bac2a46d38ca19e8c5.tar.bz2 |
Forward port r70470 and r70473 for OrderedDict to use a doubly linked list.
Diffstat (limited to 'Lib/test/test_collections.py')
-rw-r--r-- | Lib/test/test_collections.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_collections.py b/Lib/test/test_collections.py index 1800bec..3d00973 100644 --- a/Lib/test/test_collections.py +++ b/Lib/test/test_collections.py @@ -770,12 +770,19 @@ class TestOrderedDict(unittest.TestCase): class GeneralMappingTests(mapping_tests.BasicTestMappingProtocol): type2test = OrderedDict + def test_popitem(self): + d = self._empty_mapping() + self.assertRaises(KeyError, d.popitem) + class MyOrderedDict(OrderedDict): pass class SubclassMappingTests(mapping_tests.BasicTestMappingProtocol): type2test = MyOrderedDict + def test_popitem(self): + d = self._empty_mapping() + self.assertRaises(KeyError, d.popitem) import doctest, collections |