I'm getting parse error then trying to run `pants ...
# general
s
I'm getting parse error then trying to run
pants test --use-coverage
Copy code
Couldn't parse 'src/python/retrytools.py' as Python source: 'invalid syntax' at line 25
at the line with python 3.12 syntax
Copy code
class Retry[C: Retryable, **P, T]:
however the tests without coverage pass (interpreter constraints are set >=3.12) what am i doing wrong?
1
h
I guess coverage is running on Python < 3.12? You might have to change the ICs and regenerate a lockfile for the tool lockfile in question (presumably pytest)
s
hm, I tried creating the lockfile, but I guess I also need interpreter constraints for the new coverage resolve
h
Yes, you need ICs for it
s
Thanks! it worked
🎉 1