]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo41515: Fix assert in test which throws SyntaxWarning. (#25379)
authorKarthikeyan Singaravelan <tir.karthi@gmail.com>
Tue, 13 Apr 2021 13:54:23 +0000 (19:24 +0530)
committerGitHub <noreply@github.com>
Tue, 13 Apr 2021 13:54:23 +0000 (06:54 -0700)
Lib/test/test_typing.py

index a6afd35944f2e73b9c6662a0a928a4ec6525ac3e..50723c4df1990876b98ac4130403377d75d83856 100644 (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):