Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
0a600cf2
Commit
0a600cf2
authored
Jan 29, 2014
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Idlelib & buildbots: suppress py3 deprecation message even if enabled.
parent
47cb38cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Lib/idlelib/idle_test/test_calltips.py
Lib/idlelib/idle_test/test_calltips.py
+6
-2
No files found.
Lib/idlelib/idle_test/test_calltips.py
View file @
0a600cf2
...
...
@@ -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__'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment