Skip to content

Commit eb77133

Browse files
authored
bpo41515: Fix assert in test which throws SyntaxWarning. (#25379)
1 parent a328d73 commit eb77133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2272,7 +2272,7 @@ def test_bad_module(self):
22722272
class BadModule:
22732273
pass
22742274
BadModule.__module__ = 'bad' # Something not in sys.modules
2275-
assert(get_type_hints(BadModule), {})
2275+
self.assertEqual(get_type_hints(BadModule), {})
22762276

22772277
class FinalTests(BaseTestCase):
22782278

0 commit comments

Comments
 (0)