]> granicus.if.org Git - python/commit
Fix SyntaxWarning on importing test_inspect (#1512)
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 9 May 2017 09:53:16 +0000 (11:53 +0200)
committerGitHub <noreply@github.com>
Tue, 9 May 2017 09:53:16 +0000 (11:53 +0200)
commitc8a77d339478e9d67c966a0d0def7e69e372fb1c
tree1f84d98c1b6b1ae5c462773b88939e56c60f1bb7
parent4e7457b85316e6591a4f0c3a4d0807bfdf7a2bea
Fix SyntaxWarning on importing test_inspect (#1512)

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.
Lib/test/test_inspect.py