gh-105431: Remove unused stuff from test_typing.NewTypeTests (#105432)

This commit is contained in:
Nikita Sobolev 2023-06-08 09:30:42 +03:00 committed by GitHub
parent aa5b762bd3
commit 9d35a71a76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)