diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 1ad07b1fd6e379a..53d1e2b7ddd86b6 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)