From e444cfcf1737ae4a15b5b35508b25f712cc72da9 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Wed, 7 Jun 2023 12:10:56 +0300 Subject: [PATCH] gh-105431: Remove unused stuff from `test_typing.NewTypeTests` --- 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 1ad07b1fd6e379..53d1e2b7ddd86b 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -6828,10 +6828,6 @@ def test_c_functions(self): class NewTypeTests(BaseTestCase): - def cleanup(self): - for f in typing._cleanups: - f() - @classmethod def setUpClass(cls): global UserId @@ -6844,9 +6840,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)