Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e39facf

Browse files
Issue #16991: Ensure that the proper OrderedDict is used in tests.
1 parent 7a3414c commit e39facf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/test/test_collections.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,6 +1979,7 @@ def test_sizeof(self):
19791979
self.assertGreater(sys.getsizeof(od), sys.getsizeof(d))
19801980

19811981
def test_views(self):
1982+
OrderedDict = self.module.OrderedDict
19821983
# See http://bugs.python.org/issue24286
19831984
s = 'the quick brown fox jumped over a lazy dog yesterday before dawn'.split()
19841985
od = OrderedDict.fromkeys(s)

0 commit comments

Comments
 (0)