fresh-continent-76371
10/25/2022, 8:05 AM'e': ('[0-9]+\.?[0-9]+(?:e[-+]?[0-9]+)?', float),
E ^
E SyntaxError: invalid escape sequence \.
The current way of testing works is :
coverage run --module --branch pytest --verbose --junit-xml=pytest_results.xml path/to/tests/test_subject.py
but when I run
./pants test path/to/tests/test_subject.py
it fails with the deep transitive error (importing the lib fails - doesn't get to run the test)
I have a sense that somehow, "coverage/pytest" is doing a lazy load, and not branching to this area of the test import. (or it is not actually testing like we think it is)
and Pants is "not" lazy loading, thus when it hits this super old 3.9+ incompatible "escape sequence" it errors.
Does anyone have any insights to this; it is good that Pants has uncovered this old escape sequence in the library that is old, but why do we not see it in the "current" testing method ;lively-dusk-46231
10/25/2022, 9:00 AM./pants dependencies path/to/tests/test_subject.py
Is the file with the offending line present ?fresh-continent-76371
10/26/2022, 1:36 AM./pants dependencies --transitive path/to/tests/test_subject.py
11:04:10.77 [INFO] Initializing scheduler...
11:04:11.04 [INFO] Scheduler initialized.
...
//:reqs0#offending-3rd-party-lib <-- This has another transitive dep, that has the problem
...
Because Pants is not showing the full transitive dependencies, it stops at the top level 3rd party lib.