Skip to content

Commit 83b8c3a

Browse files
committed
Update test_copy.py from CPython v3.12.0
1 parent 36a36b2 commit 83b8c3a

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Lib/test/test_copy.py

+4-8
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ def __getattribute__(self, name):
9191
# Type-specific _copy_xxx() methods
9292

9393
def test_copy_atomic(self):
94-
class Classic:
95-
pass
96-
class NewStyle(object):
94+
class NewStyle:
9795
pass
9896
def f():
9997
pass
@@ -103,7 +101,7 @@ class WithMetaclass(metaclass=abc.ABCMeta):
103101
42, 2**100, 3.14, True, False, 1j,
104102
"hello", "hello\u1234", f.__code__,
105103
b"world", bytes(range(256)), range(10), slice(1, 10, 2),
106-
NewStyle, Classic, max, WithMetaclass, property()]
104+
NewStyle, max, WithMetaclass, property()]
107105
for x in tests:
108106
self.assertIs(copy.copy(x), x)
109107

@@ -358,15 +356,13 @@ def __getattribute__(self, name):
358356
# Type-specific _deepcopy_xxx() methods
359357

360358
def test_deepcopy_atomic(self):
361-
class Classic:
362-
pass
363-
class NewStyle(object):
359+
class NewStyle:
364360
pass
365361
def f():
366362
pass
367363
tests = [None, ..., NotImplemented, 42, 2**100, 3.14, True, False, 1j,
368364
b"bytes", "hello", "hello\u1234", f.__code__,
369-
NewStyle, range(10), Classic, max, property()]
365+
NewStyle, range(10), max, property()]
370366
for x in tests:
371367
self.assertIs(copy.deepcopy(x), x)
372368

0 commit comments

Comments
 (0)