mirror of
https://github.com/python/cpython.git
synced 2025-08-09 11:29:45 +00:00
[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 9d35a71a76
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
parent
ae25f1c8e5
commit
2b6f475db8
1 changed files with 0 additions and 7 deletions
|
@ -6893,10 +6893,6 @@ class TestModules(TestCase):
|
||||||
|
|
||||||
|
|
||||||
class NewTypeTests(BaseTestCase):
|
class NewTypeTests(BaseTestCase):
|
||||||
def cleanup(self):
|
|
||||||
for f in typing._cleanups:
|
|
||||||
f()
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
global UserId
|
global UserId
|
||||||
|
@ -6909,9 +6905,6 @@ class NewTypeTests(BaseTestCase):
|
||||||
del UserId
|
del UserId
|
||||||
del cls.UserName
|
del cls.UserName
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
self.cleanup()
|
|
||||||
|
|
||||||
def test_basic(self):
|
def test_basic(self):
|
||||||
self.assertIsInstance(UserId(5), int)
|
self.assertIsInstance(UserId(5), int)
|
||||||
self.assertIsInstance(self.UserName('Joe'), str)
|
self.assertIsInstance(self.UserName('Joe'), str)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue