[Python-checkins] gh-105431: Remove unused stuff from `test_typing.NewTypeTests` (#105432)
AlexWaygood
webhook-mailer at python.org
Thu Jun 8 02:30:50 EDT 2023
https://github.com/python/cpython/commit/9d35a71a76cb033598ce136ea655d9e452fe3af0
commit: 9d35a71a76cb033598ce136ea655d9e452fe3af0
branch: main
author: Nikita Sobolev <mail at sobolevn.me>
committer: AlexWaygood <Alex.Waygood at Gmail.com>
date: 2023-06-08T07:30:42+01:00
summary:
gh-105431: Remove unused stuff from `test_typing.NewTypeTests` (#105432)
files:
M Lib/test/test_typing.py
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 @@ 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)
More information about the Python-checkins
mailing list