From eb77133564d74eb09ed63872a69b9827d4841b49 Mon Sep 17 00:00:00 2001 From: Karthikeyan Singaravelan Date: Tue, 13 Apr 2021 19:24:23 +0530 Subject: [PATCH] bpo41515: Fix assert in test which throws SyntaxWarning. (#25379) --- Lib/test/test_typing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index a6afd35944f..50723c4df19 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):