8000 [3.12] gh-105431: Remove unused stuff from `test_typing.NewTypeTests`… · python/cpython@2b6f475 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2b6f475

Browse files
[3.12] gh-105431: Remove unused stuff from test_typing.NewTypeTests (GH-105432) (#105489)
gh-105431: Remove unused stuff from `test_typing.NewTypeTests` (GH-105432) (cherry picked from commit 9d35a71) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
1 parent ae25f1c commit 2b6f475

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Lib/test/test_typing.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6893,10 +6893,6 @@ def test_c_functions(self):
68936893

68946894

68956895
class NewTypeTests(BaseTestCase):
6896-
def cleanup(self):
6897-
for f in typing._cleanups:
6898-
f()
6899-
69006896
@classmethod
69016897
def setUpClass(cls):
69026898
global UserId
@@ -6909,9 +6905,6 @@ def tearDownClass(cls):
69096905
del UserId
69106906
del cls.UserName
69116907

6912-
def tearDown(self):
6913-
self.cleanup()
6914-
69156908
def test_basic(self):
69166909
self.assertIsInstance(UserId(5), int)
69176910
self.assertIsInstance(self.UserName('Joe'), str)

0 commit comments

Comments
 (0)
0