brash-baker-91190
07/07/2022, 2:44 PMpytest-cov
, and am trying to refactor a bit of code to use Python's "walrus operator", introduced in Python 3.8. I'm using Python 3.8.13, my syntax is correct, my tests run and pass, but the coverage reporting fails with the following:
10:40:26.59 [ERROR] 1 Exception encountered:
ProcessExecutionFailure: Process 'Generate Pytest xml coverage report.' failed with exit code 1.
stdout:
Couldn't parse '/tmp/process-executionhBLEdi/build-support/packer_hcl.py' as Python source: 'invalid syntax' at line 23
stderr:
This line is where the walrus operator was introduced. I'm using pytest-cov
3.0.0, which supports Python 3.10. I see no issues or PRs about this in either Pytest or `pytest-cov`'s repositories.
Is it possible that something in how Pants is running things is causing this? Has anybody else seen anything like this? Thanks in advance.hundreds-father-404
07/07/2022, 2:51 PMbrash-baker-91190
07/07/2022, 2:57 PMhundreds-father-404
07/07/2022, 3:01 PMbrash-baker-91190
07/07/2022, 3:04 PMcoverage-py
does the trick for me 👍