@@ -230,7 +230,7 @@ def __init__(self, name, bases, namespace, otherarg):
230230 super ().__init__ (name , bases , namespace )
231231
232232 with self .assertRaises (TypeError ):
233- class MyClass (metaclass = MyMeta , otherarg = 1 ):
233+ class MyClass2 (metaclass = MyMeta , otherarg = 1 ):
234234 pass
235235
236236 class MyMeta (type ):
@@ -241,10 +241,10 @@ def __init__(self, name, bases, namespace, otherarg):
241241 super ().__init__ (name , bases , namespace )
242242 self .otherarg = otherarg
243243
244- class MyClass (metaclass = MyMeta , otherarg = 1 ):
244+ class MyClass3 (metaclass = MyMeta , otherarg = 1 ):
245245 pass
246246
247- self .assertEqual (MyClass .otherarg , 1 )
247+ self .assertEqual (MyClass3 .otherarg , 1 )
248248
249249 def test_errors_changed_pep487 (self ):
250250 # These tests failed before Python 3.6, PEP 487
@@ -263,10 +263,10 @@ def __new__(cls, name, bases, namespace, otherarg):
263263 self .otherarg = otherarg
264264 return self
265265
266- class MyClass (metaclass = MyMeta , otherarg = 1 ):
266+ class MyClass2 (metaclass = MyMeta , otherarg = 1 ):
267267 pass
268268
269- self .assertEqual (MyClass .otherarg , 1 )
269+ self .assertEqual (MyClass2 .otherarg , 1 )
270270
271271 def test_type (self ):
272272 t = type ('NewClass' , (object ,), {})
0 commit comments