]> git.madduck.net Git - etc/vim.git/commit

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

expression tests: adjust starred expression for Python 3.9 (#1441) (#1477)
authorAdam Williamson <adamw@happyassassin.net>
Wed, 3 Jun 2020 22:15:54 +0000 (15:15 -0700)
committerGitHub <noreply@github.com>
Wed, 3 Jun 2020 22:15:54 +0000 (15:15 -0700)
commit88d12f88a97e5e4c8fd0d245df0a311e932fd1e1
treeb40dc817d2e7d9fa86be8eb39f684c49b44e90c7
parentfcf97961061982656a1384ecc1628e217a52a88c
expression tests: adjust starred expression for Python 3.9 (#1441) (#1477)

As discussed in #1441, Python 3.9's new parser will not parse
`(*starred)` even using `compile()` with the `PyCF_ONLY_AST`
flag (as `ast.parse()` does), it raises a `SyntaxError`. This
breaks the four tests that use this file with Python 3.9.
Upstream does not consider this to be a bug - see
https://bugs.python.org/issue40848#msg370643 - so we must
adjust the expression. As suggested by @JelleZijlstra, this just
adds a comma, which makes the new parser happy with it (the old
parser is fine with this form also).

Signed-off-by: Adam Williamson <awilliam@redhat.com>
tests/data/expression.diff
tests/data/expression.py