From 3ac26c1bd2f86d8e514b81649be342be2f99ed39 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Thu, 30 Jan 2014 21:37:24 -0500 Subject: [PATCH] Idle test: 2nd try at suppressing compile time warning (hint by Nick Coghlan). --- Lib/idlelib/idle_test/test_calltips.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__': -- 2.50.1