diff options
author | Jingxuan He <LostBenjamin@users.noreply.github.com> | 2022-07-28 22:42:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-28 22:42:51 (GMT) |
commit | 390847922c8f93db6f639d6e0ab3e53aefa60c76 (patch) | |
tree | f72107425ab66cc4be8a21a1f181f5a852ecd4f6 | |
parent | 7df2f4d78714707cfb30d83ca99ce84ef9934892 (diff) | |
download | cpython-390847922c8f93db6f639d6e0ab3e53aefa60c76.zip cpython-390847922c8f93db6f639d6e0ab3e53aefa60c76.tar.gz cpython-390847922c8f93db6f639d6e0ab3e53aefa60c76.tar.bz2 |
Fix misused variable that was preventing permutations of classes from being tested (GH-93935)
-rw-r--r-- | Lib/test/test_functools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_functools.py b/Lib/test/test_functools.py index 767d2a9..a4b098a 100644 --- a/Lib/test/test_functools.py +++ b/Lib/test/test_functools.py @@ -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, |