Idle test: 2nd try at suppressing compile time warning (hint by Nick Coghlan).

This commit is contained in:
Terry Jan Reedy 2014-01-30 21:37:24 -05:00
parent 9cdf2d0338
commit 3ac26c1bd2
1 changed files with 1 additions and 1 deletions

View 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__':