diff --git a/Lib/test/test_collections.py b/Lib/test/test_collections.py index 5836cb37ea0..e65824f42cb 100644 --- a/Lib/test/test_collections.py +++ b/Lib/test/test_collections.py @@ -1979,6 +1979,7 @@ class OrderedDictTests: self.assertGreater(sys.getsizeof(od), sys.getsizeof(d)) def test_views(self): + OrderedDict = self.module.OrderedDict # See http://bugs.python.org/issue24286 s = 'the quick brown fox jumped over a lazy dog yesterday before dawn'.split() od = OrderedDict.fromkeys(s)