@@ -91,9 +91,7 @@ def __getattribute__(self, name):
91
91
# Type-specific _copy_xxx() methods
92
92
93
93
def test_copy_atomic (self ):
94
- class Classic :
95
- pass
96
- class NewStyle (object ):
94
+ class NewStyle :
97
95
pass
98
96
def f ():
99
97
pass
@@ -103,7 +101,7 @@ class WithMetaclass(metaclass=abc.ABCMeta):
103
101
42 , 2 ** 100 , 3.14 , True , False , 1j ,
104
102
"hello" , "hello\u1234 " , f .__code__ ,
105
103
b"world" , bytes (range (256 )), range (10 ), slice (1 , 10 , 2 ),
106
- NewStyle , Classic , max , WithMetaclass , property ()]
104
+ NewStyle , max , WithMetaclass , property ()]
107
105
for x in tests :
108
106
self .assertIs (copy .copy (x ), x )
109
107
@@ -358,15 +356,13 @@ def __getattribute__(self, name):
358
356
# Type-specific _deepcopy_xxx() methods
359
357
360
358
def test_deepcopy_atomic (self ):
361
- class Classic :
362
- pass
363
- class NewStyle (object ):
359
+ class NewStyle :
364
360
pass
365
361
def f ():
366
362
pass
367
363
tests = [None , ..., NotImplemented , 42 , 2 ** 100 , 3.14 , True , False , 1j ,
368
364
b"bytes" , "hello" , "hello\u1234 " , f .__code__ ,
369
- NewStyle , range (10 ), Classic , max , property ()]
365
+ NewStyle , range (10 ), max , property ()]
370
366
for x in tests :
371
367
self .assertIs (copy .deepcopy (x ), x )
372
368
0 commit comments