Replies: 2 comments
-
|
It seems like when we type annotated |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thanks, the change is pretty straightforward, so updating the libraries is easy enough, but got thrown off by the error itself. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In a few libraries I manage, I use flags to manage running just unit or regression tests using some shorthand arguments that get run via
pytest --unitorpytest --regression. This collects the test files from the directories I want to run. In up to v9, I have been able to directly passPosixPathobjects toconfig.args, however, there seems to be a behavior change because I now have to pass astrfor all the arguments.This was a bit of a confusing change because the error in the example below isn't very obvious, and doesn't seem to be directly documented anywhere. The fix was ultimately an easy fix to just convert the paths to strings, but I'm wondering also if this was an intended change somewhere along the lines that I've missed, a missing deprecation, or bug?
Exact code from the simplest instance of the behavior is directly pulled from https://github.com/WISDEM/WOMBAT/blob/main/tests/conftest.py.
Running
pytestworks just fine, but once I use either the--unitor--regressionflags, I get the following output.Beta Was this translation helpful? Give feedback.
All reactions