bpo41515: Fix assert in test which throws SyntaxWarning. (#25379)

This commit is contained in:
Karthikeyan Singaravelan 2021-04-13 19:24:23 +05:30 committed by GitHub
parent a328d73843
commit eb77133564
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2272,7 +2272,7 @@ class ClassVarTests(BaseTestCase):
class BadModule:
pass
BadModule.__module__ = 'bad' # Something not in sys.modules
assert(get_type_hints(BadModule), {})
self.assertEqual(get_type_hints(BadModule), {})
class FinalTests(BaseTestCase):