From: Terry Jan Reedy Date: Fri, 31 Jan 2014 02:37:24 +0000 (-0500) Subject: Idle test: 2nd try at suppressing compile time warning (hint by Nick Coghlan). X-Git-Tag: v2.7.8~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ac26c1bd2f86d8e514b81649be342be2f99ed39;p=python Idle test: 2nd try at suppressing compile time warning (hint by Nick Coghlan). --- diff --git a/Lib/idlelib/idle_test/test_calltips.py b/Lib/idlelib/idle_test/test_calltips.py index 0d2da40ebf..60b688fa3d 100644 --- a/Lib/idlelib/idle_test/test_calltips.py +++ b/Lib/idlelib/idle_test/test_calltips.py @@ -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), '(, c=0.0)') if __name__ == '__main__':