From ec713b814bdf363f161270a4d6abe18358f90c5d Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Thu, 8 Jun 2023 09:30:42 +0300 Subject: [PATCH] gh-105431: Remove unused stuff from `test_typing.NewTypeTests` (GH-105432) (cherry picked from commit 9d35a71a76cb033598ce136ea655d9e452fe3af0) Co-authored-by: Nikita Sobolev --- Lib/test/test_typing.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 74480891fb50d4..7dc64c6ecc9e5b 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -6893,10 +6893,6 @@ def test_c_functions(self): class NewTypeTests(BaseTestCase): - def cleanup(self): - for f in typing._cleanups: - f() - @classmethod def setUpClass(cls): global UserId @@ -6909,9 +6905,6 @@ def tearDownClass(cls): 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)