mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Fix misused variable that was preventing permutations of classes from being tested (GH-93935)
This commit is contained in:
parent
7df2f4d787
commit
390847922c
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue