From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 8 Jun 2023 06:57:21 +0000 (-0700) Subject: [3.12] gh-105431: Remove unused stuff from `test_typing.NewTypeTests` (GH-105432... X-Git-Tag: v3.12.0b3~79 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2b6f475db8adf0d75a8fce5dd8f2f50b875753d6;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-105431: Remove unused stuff from `test_typing.NewTypeTests` (GH-105432) (#105489) gh-105431: Remove unused stuff from `test_typing.NewTypeTests` (GH-105432) (cherry picked from commit 9d35a71a76cb033598ce136ea655d9e452fe3af0) Co-authored-by: Nikita Sobolev --- diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 74480891fb50..7dc64c6ecc9e 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)