From: Nikita Sobolev Date: Thu, 8 Jun 2023 06:30:42 +0000 (+0300) Subject: gh-105431: Remove unused stuff from `test_typing.NewTypeTests` (#105432) X-Git-Tag: v3.13.0a1~1838 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9d35a71a76cb033598ce136ea655d9e452fe3af0;p=thirdparty%2FPython%2Fcpython.git gh-105431: Remove unused stuff from `test_typing.NewTypeTests` (#105432) --- diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index dcbe3100bd3a..432fc88b1c07 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -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)