summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarthikeyan Singaravelan <tir.karthi@gmail.com>2021-04-13 19:24:23 +0530
committerGitHub <noreply@github.com>2021-04-13 06:54:23 -0700
commiteb77133564d74eb09ed63872a69b9827d4841b49 (patch)
tree4f485e89a5afacb3532dbce47bf2d27e1133833e
parenta328d73843cfd42d2aee1434c78df1ef2845931a (diff)
downloadcpython-git-eb77133564d74eb09ed63872a69b9827d4841b49.tar.gz
bpo41515: Fix assert in test which throws SyntaxWarning. (#25379)
-rw-r--r--Lib/test/test_typing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py
index a6afd35944..50723c4df1 100644
--- a/Lib/test/test_typing.py
+++ b/Lib/test/test_typing.py
@@ -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):