[Python-checkins] bpo41515: Fix assert in test which throws SyntaxWarning. (#25379)

gvanrossum webhook-mailer at python.org
Tue Apr 13 09:54:32 EDT 2021


https://github.com/python/cpython/commit/eb77133564d74eb09ed63872a69b9827d4841b49
commit: eb77133564d74eb09ed63872a69b9827d4841b49
branch: master
author: Karthikeyan Singaravelan <tir.karthi at gmail.com>
committer: gvanrossum <gvanrossum at gmail.com>
date: 2021-04-13T06:54:23-07:00
summary:

bpo41515: Fix assert in test which throws SyntaxWarning. (#25379)

files:
M Lib/test/test_typing.py

diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py
index a6afd35944f2e..50723c4df1990 100644
--- a/Lib/test/test_typing.py
+++ b/Lib/test/test_typing.py
@@ -2272,7 +2272,7 @@ def test_bad_module(self):
         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):
 



More information about the Python-checkins mailing list