Skip to content

Commit 3908479

Browse files
authored
Fix misused variable that was preventing permutations of classes from being tested (GH-93935)
1 parent 7df2f4d commit 3908479

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_functools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2003,7 +2003,7 @@ class D(collections.defaultdict):
20032003
c.MutableSequence.register(D)
20042004
bases = [c.MutableSequence, c.MutableMapping]
20052005
for haystack in permutations(bases):
2006-
m = mro(D, bases)
2006+
m = mro(D, haystack)
20072007
self.assertEqual(m, [D, c.MutableSequence, c.Sequence, c.Reversible,
20082008
collections.defaultdict, dict, c.MutableMapping, c.Mapping,
20092009
c.Collection, c.Sized, c.Iterable, c.Container,

0 commit comments

Comments
 (0)