[Python-checkins] cpython (2.7): Idle test: 2nd try at suppressing compile time warning (hint by Nick Coghlan).
terry.reedy
python-checkins at python.org
Fri Jan 31 03:37:46 CET 2014
http://hg.python.org/cpython/rev/78a721fa9b67
changeset: 88842:78a721fa9b67
branch: 2.7
parent: 88838:03b399c807d6
user: Terry Jan Reedy <tjreedy at udel.edu>
date: Thu Jan 30 21:37:24 2014 -0500
summary:
Idle test: 2nd try at suppressing compile time warning (hint by Nick Coghlan).
files:
Lib/idlelib/idle_test/test_calltips.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/idlelib/idle_test/test_calltips.py b/Lib/idlelib/idle_test/test_calltips.py
--- a/Lib/idlelib/idle_test/test_calltips.py
+++ b/Lib/idlelib/idle_test/test_calltips.py
@@ -167,7 +167,7 @@
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__':
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list