]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-105431: Remove unused stuff from `test_typing.NewTypeTests` (GH-105432...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 8 Jun 2023 06:57:21 +0000 (23:57 -0700)
committerGitHub <noreply@github.com>
Thu, 8 Jun 2023 06:57:21 +0000 (06:57 +0000)
gh-105431: Remove unused stuff from `test_typing.NewTypeTests` (GH-105432)
(cherry picked from commit 9d35a71a76cb033598ce136ea655d9e452fe3af0)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Lib/test/test_typing.py

index 74480891fb50d4c3413bfce97a13132bccb29eb7..7dc64c6ecc9e5b3475dda592019168206a3d6a12 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)