8000 [2.7] Fix SyntaxWarning on importing test_inspect by vstinner · Pull Request #1512 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[2.7] Fix SyntaxWar 8000 ning on importing test_inspect #1512

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 9, 2017
Merged

[2.7] Fix SyntaxWarning on importing test_inspect #1512

merged 1 commit into from
May 9, 2017

Conversation

vstinner
Copy link
Member
@vstinner vstinner commented May 9, 2017

Fix the following warning when test_inspect.py is compiled to
test_inspect.pyc:

test_inspect.py:505: SyntaxWarning: tuple parameter unpacking has been removed in 3.x
def spam_deref(a, b, c, d=3, (e, (f,))=(4, (5,)), *g, **h):

Replace also test.test_support import with test.support.

Fix the following warning when test_inspect.py is compiled to
test_inspect.pyc:

test_inspect.py:505: SyntaxWarning: tuple parameter unpacking has been removed in 3.x
  def spam_deref(a, b, c, d=3, (e, (f,))=(4, (5,)), *g, **h):

Replace also test.test_support import with test.support.
@vstinner vstinner merged commit c8a77d3 into python:2.7 May 9, 2017
@vstinner vstinner deleted the test_inspect_warn_27 branch May 9, 2017 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0