diff --git a/tests/unittest_brain.py b/tests/unittest_brain.py index d4e6a7cfaf..10420a542d 100644 --- a/tests/unittest_brain.py +++ b/tests/unittest_brain.py @@ -1238,7 +1238,7 @@ def check_metaclass(node: nodes.ClassDef): T = TypeVar("T") MutableSet[T] - class Derived(MutableSet[T]): + class Derived1(MutableSet[T]): pass """ ) @@ -1247,7 +1247,7 @@ class Derived(MutableSet[T]): assertEqualMro( inferred, [ - "Derived", + "Derived1", "MutableSet", "Set", "Collection", @@ -1261,7 +1261,7 @@ class Derived(MutableSet[T]): node = builder.extract_node( """ import typing - class Derived(typing.OrderedDict[int, str]): + class Derived2(typing.OrderedDict[int, str]): pass """ ) @@ -1270,7 +1270,7 @@ class Derived(typing.OrderedDict[int, str]): assertEqualMro( inferred, [ - "Derived", + "Derived2", "OrderedDict", "dict", "object", @@ -1280,7 +1280,7 @@ class Derived(typing.OrderedDict[int, str]): node = builder.extract_node( """ import typing - class Derived(typing.Pattern[str]): + class Derived3(typing.Pattern[str]): pass """ ) @@ -1289,7 +1289,7 @@ class Derived(typing.Pattern[str]): assertEqualMro( inferred, [ - "Derived", + "Derived3", "Pattern", "object", ],