You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ poetry run poe test-integ-watch
Poe => ptw --runner "pytest -m integtest"
[Wed Jun 15 10:02:38 2022] Running: "pytest -m integtest"'\"pytest -m integtest\"' is not recognized as an internal or external command,
operable program or batch file.
my windows machine produces an argv that is formed as ['"poetry', 'run', 'poe', 'test-integ"'] instead of being formed as ['poetry', 'run', 'poe', 'test-integ']. The line where the watcher fails is shown below.
This seems to still be broken. Any way around this? I'd specifically love to be able to run ptw with -m or -k arguments on Windows (unfortunately my current project has to run on a Windows machine, not WSL or anything else).
To add to this, the problem also seems to occur if you use the recommended -- <pytest runner arguments> method:
Edit: the workaround for me seems to be to not use poetry run to run the command. If I activate the Poetry env first and just run ptw -- -m "not integration" all is good :)
Upon running the following command,
my windows machine produces an
argv
that is formed as['"poetry', 'run', 'poe', 'test-integ"']
instead of being formed as['poetry', 'run', 'poe', 'test-integ']
. The line where the watcher fails is shown below.found at
pytest-watch/pytest_watch/watcher.py
Line 274 in 17375a1
Running the same command on a Mac would have a well-formed list of arguments.
One possible solution would be to clean the arguments before passing them into the constructor, i.e.,
The text was updated successfully, but these errors were encountered: