Couldn't parse as Python source: 'invalid syntax' at line 987

Issue #632 invalid
Evandro Coan created an issue

I had setup coverage for Travis and AppVeyor for the same project. The Travis build is 100% working, but the AppVeyor build if falling on this line:

def semantic_line_wrap(self, ...):
    ...
    def force_flush_accumulated_line():
        nonlocal index # <--- Line 987

This is the full report for AppVeyor and Travis:

  1. https://ci.appveyor.com/project/evandrocoan/wrapplus/build/1.0.18
  2. https://travis-ci.org/evandrocoan/WrapPlus/jobs/328876925
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _ |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \____|\___|\___\___/ \_/
v2.0.13
==> Detecting CI provider
AppVeyor Detected
....
service=appveyor&package=py2.0.13&job=evandrocoan%2Fwrapplus%2F1.0.18&build=dy10m8s4osh37w20&branch=master&commit=9a9201fdac7ee1d98205e5396c41b842ac51ec12&slug=evandrocoan%2FWrapPlus
Pinging Codecov...
Uploading to S3...
https://codecov.io/github/evandrocoan/WrapPlus/commit/9a9201fdac7ee1d98205e5396c41b842ac51ec12
coverage xml -o coverage.xml
Couldn't parse 'C:\projects\wrapplus\wrap_plus.py' as Python source: 'invalid syntax' at line 987
Command exited with code 1
python-codacy-coverage
2018-01-15 00:53:10,471 - ERROR - Coverage report coverage.xml not found.
Command exited with code 1

Comments (1)

  1. Ned Batchelder repo owner

    Looks like your AppVeyor build is running on Python 2.7. Python 2 doesn't have a nonlocal keyword.

  2. Log in to comment