From: Jingxuan He Date: Thu, 28 Jul 2022 22:42:51 +0000 (+0200) Subject: Fix misused variable that was preventing permutations of classes from being tested... X-Git-Tag: v3.12.0a1~800 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=390847922c8f93db6f639d6e0ab3e53aefa60c76;p=thirdparty%2FPython%2Fcpython.git Fix misused variable that was preventing permutations of classes from being tested (GH-93935) --- diff --git a/Lib/test/test_functools.py b/Lib/test/test_functools.py index 767d2a9c1aea..a4b098a2a5b8 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,