[Python-checkins] [python/cpython] c8a77d: Fix SyntaxWarning on importing test_inspect (#1512...

GitHub noreply at github.com
Tue May 9 05:53:17 EDT 2017


  Branch: refs/heads/2.7
  Home:   https://github.com/python/cpython
  Commit: c8a77d339478e9d67c966a0d0def7e69e372fb1c
      https://github.com/python/cpython/commit/c8a77d339478e9d67c966a0d0def7e69e372fb1c
  Author: Victor Stinner <victor.stinner at gmail.com>
  Date:   2017-05-09 (Tue, 09 May 2017)

  Changed paths:
    M Lib/test/test_inspect.py

  Log Message:
  -----------
  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.




More information about the Python-checkins mailing list