diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2022-11-13 18:30:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-13 18:30:00 (GMT) |
commit | d329f859b9cea9e6fa76fdf03927f659cf17786b (patch) | |
tree | b42577a7387bbab0f5a10520e8397a685af16074 /Lib/test/test_copy.py | |
parent | 439b9cfaf43080e91c4ad69f312f21fa098befc7 (diff) | |
download | cpython-d329f859b9cea9e6fa76fdf03927f659cf17786b.zip cpython-d329f859b9cea9e6fa76fdf03927f659cf17786b.tar.gz cpython-d329f859b9cea9e6fa76fdf03927f659cf17786b.tar.bz2 |
gh-99430: Remove duplicated tests for old-styled classes (#99432)
python 1 & 2 were a loong time ago.
Diffstat (limited to 'Lib/test/test_copy.py')
-rw-r--r-- | Lib/test/test_copy.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Lib/test/test_copy.py b/Lib/test/test_copy.py index f4d91c1..cc95a31 100644 --- a/Lib/test/test_copy.py +++ b/Lib/test/test_copy.py @@ -88,9 +88,7 @@ class TestCopy(unittest.TestCase): # Type-specific _copy_xxx() methods def test_copy_atomic(self): - class Classic: - pass - class NewStyle(object): + class NewStyle: pass def f(): pass @@ -100,7 +98,7 @@ class TestCopy(unittest.TestCase): 42, 2**100, 3.14, True, False, 1j, "hello", "hello\u1234", f.__code__, b"world", bytes(range(256)), range(10), slice(1, 10, 2), - NewStyle, Classic, max, WithMetaclass, property()] + NewStyle, max, WithMetaclass, property()] for x in tests: self.assertIs(copy.copy(x), x) @@ -350,15 +348,13 @@ class TestCopy(unittest.TestCase): # Type-specific _deepcopy_xxx() methods def test_deepcopy_atomic(self): - class Classic: - pass - class NewStyle(object): + class NewStyle: pass def f(): pass tests = [None, 42, 2**100, 3.14, True, False, 1j, "hello", "hello\u1234", f.__code__, - NewStyle, range(10), Classic, max, property()] + NewStyle, range(10), max, property()] for x in tests: self.assertIs(copy.deepcopy(x), x) |