Fix misused variable that was preventing permutations of classes from being tested (GH-93935)

This commit is contained in:
Jingxuan He 2022-07-29 00:42:51 +02:00 committed by GitHub
parent 7df2f4d787
commit 390847922c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2003,7 +2003,7 @@ class TestSingleDispatch(unittest.TestCase):
c.MutableSequence.register(D)
bases = [c.MutableSequence, c.MutableMapping]
for haystack in permutations(bases):
m = mro(D, bases)
m = mro(D, haystack)
self.assertEqual(m, [D, c.MutableSequence, c.Sequence, c.Reversible,
collections.defaultdict, dict, c.MutableMapping, c.Mapping,
c.Collection, c.Sized, c.Iterable, c.Container,