Commit 3ac26c1b authored by Terry Jan Reedy's avatar Terry Jan Reedy

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

parent 9cdf2d03
......@@ -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__':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment