Skip to content

Commit

Permalink
[3.12] gh-105431: Remove unused stuff from test_typing.NewTypeTests (
Browse files Browse the repository at this point in the history
…GH-105432) (#105489)

gh-105431: Remove unused stuff from `test_typing.NewTypeTests` (GH-105432)
(cherry picked from commit 9d35a71)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
  • Loading branch information
miss-islington and sobolevn authored Jun 8, 2023
1 parent ae25f1c commit 2b6f475
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Lib/test/test_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 2b6f475

Please sign in to comment.