Issue #16991: Ensure that the proper OrderedDict is used in tests.

This commit is contained in:
Eric Snow 2015-05-30 13:24:54 -06:00
parent 7a3414c201
commit e39facfdbc
1 changed files with 1 additions and 0 deletions

View File

@ -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)