summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarthikeyan Singaravelan <tir.karthi@gmail.com>2021-04-13 13:54:23 (GMT)
committerGitHub <noreply@github.com>2021-04-13 13:54:23 (GMT)
commiteb77133564d74eb09ed63872a69b9827d4841b49 (patch)
tree4f485e89a5afacb3532dbce47bf2d27e1133833e
parenta328d73843cfd42d2aee1434c78df1ef2845931a (diff)
downloadcpython-eb77133564d74eb09ed63872a69b9827d4841b49.zip
cpython-eb77133564d74eb09ed63872a69b9827d4841b49.tar.gz
cpython-eb77133564d74eb09ed63872a69b9827d4841b49.tar.bz2
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 a6afd35..50723c4 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):