]> granicus.if.org Git - python/commitdiff
Idle test: 2nd try at suppressing compile time warning (hint by Nick Coghlan).
authorTerry Jan Reedy <tjreedy@udel.edu>
Fri, 31 Jan 2014 02:37:24 +0000 (21:37 -0500)
committerTerry Jan Reedy <tjreedy@udel.edu>
Fri, 31 Jan 2014 02:37:24 +0000 (21:37 -0500)
Lib/idlelib/idle_test/test_calltips.py

index 0d2da40ebf6631dbb0abf17c041c072adbb38350..60b688fa3d563bd5f3b4ff3a28b64d0c8d506c9d 100644 (file)
@@ -167,7 +167,7 @@ class Py2Test(unittest.TestCase):
         with warnings.catch_warnings():
             # Suppess message of py3 deprecation of parameter unpacking
             warnings.simplefilter("ignore")
-            def f((a,b), c=0.0): pass
+            exec "def f((a,b), c=0.0): pass"
         self.assertEqual(signature(f), '(<tuple>, c=0.0)')
 
 if __name__ == '__main__':