mirror of https://github.com/python/cpython
bpo41515: Fix assert in test which throws SyntaxWarning. (#25379)
This commit is contained in:
parent
a328d73843
commit
eb77133564
|
@ -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):
|
||||
|
||||
|
|
Loading…
Reference in New Issue