From: Karthikeyan Singaravelan Date: Tue, 13 Apr 2021 13:54:23 +0000 (+0530) Subject: bpo41515: Fix assert in test which throws SyntaxWarning. (#25379) X-Git-Tag: v3.10.0b1~301 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eb77133564d74eb09ed63872a69b9827d4841b49;p=thirdparty%2FPython%2Fcpython.git bpo41515: Fix assert in test which throws SyntaxWarning. (#25379) --- diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index a6afd35944f2..50723c4df199 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):