]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-105431: Remove unused stuff from `test_typing.NewTypeTests` (#105432)
authorNikita Sobolev <mail@sobolevn.me>
Thu, 8 Jun 2023 06:30:42 +0000 (09:30 +0300)
committerGitHub <noreply@github.com>
Thu, 8 Jun 2023 06:30:42 +0000 (07:30 +0100)
Lib/test/test_typing.py

index dcbe3100bd3a655020cf5db2fe02d707ce76f5da..432fc88b1c072efdf7b0885cd4aef10a52896a68 100644 (file)
@@ -6893,10 +6893,6 @@ class TestModules(TestCase):
 
 
 class NewTypeTests(BaseTestCase):
-    def cleanup(self):
-        for f in typing._cleanups:
-            f()
-
     @classmethod
     def setUpClass(cls):
         global UserId
@@ -6909,9 +6905,6 @@ class NewTypeTests(BaseTestCase):
         del UserId
         del cls.UserName
 
-    def tearDown(self):
-        self.cleanup()
-
     def test_basic(self):
         self.assertIsInstance(UserId(5), int)
         self.assertIsInstance(self.UserName('Joe'), str)