diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2014-01-29 19:42:32 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2014-01-29 19:42:32 (GMT) |
commit | 0a600cf23570bf3c1dc36a40922bc7b98ad4f644 (patch) | |
tree | f494b9edf88cf65c0b104458d44ef181c5a82226 /Lib/idlelib | |
parent | 47cb38cdcc3e16d77ecc9808ad669181ce54b246 (diff) | |
download | cpython-0a600cf23570bf3c1dc36a40922bc7b98ad4f644.zip cpython-0a600cf23570bf3c1dc36a40922bc7b98ad4f644.tar.gz cpython-0a600cf23570bf3c1dc36a40922bc7b98ad4f644.tar.bz2 |
Idlelib & buildbots: suppress py3 deprecation message even if enabled.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/idle_test/test_calltips.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/idlelib/idle_test/test_calltips.py b/Lib/idlelib/idle_test/test_calltips.py index 6415dfc..0d2da40 100644 --- a/Lib/idlelib/idle_test/test_calltips.py +++ b/Lib/idlelib/idle_test/test_calltips.py @@ -3,6 +3,7 @@ import idlelib.CallTips as ct CTi = ct.CallTips() # needed for get_entity test in 2.7 import textwrap import types +import warnings default_tip = '' @@ -162,8 +163,11 @@ class Get_entityTest(unittest.TestCase): class Py2Test(unittest.TestCase): def test_paramtuple_float(self): - # 18539: (a,b) becomes '.0' in code object; change that but not float - def f((a,b), c=0.0): pass + # 18539: (a,b) becomes '.0' in code object; change that but not 0.0 + with warnings.catch_warnings(): + # Suppess message of py3 deprecation of parameter unpacking + warnings.simplefilter("ignore") + def f((a,b), c=0.0): pass self.assertEqual(signature(f), '(<tuple>, c=0.0)') if __name__ == '__main__': |