Open PureTryOut opened 4 years ago
This is certainly not all locked down as I'm no Docker expert... but there's a Dockerfile
and output below that seem to work.
tl;dr: PYTHONPATH="." PYTEST_PLUGINS="pytest_trio.plugin" pytest --pyargs pytest_trio
Well this has nothing to do with Docker really, Alpine is used for more things :wink:
I gave your command a shot and it failed, although differently:
ValueError: Plugin already registered: pytest_trio.plugin=<module 'pytest_trio.plugin' from '/home/bart/Documents/Git/alpine/aports/community/py3-pytest-trio/src/pytest-trio-0.6.0/pytest_trio/plugin.py'>
Strange that it works on the Dockerfile, I don't really do anything different...
Sorry for piling on with the ignorance there... and actually I recreated the same issue outside in my Ubuntu install.
Could you share the full command line and output anyways? Also include python -m pip freeze
for the Python that the pytest is running from. And type python
and head $(which pytest)
. Adjust all as needed so as to have them using the same Python. I'm looking to make sure pytest-trio isn't somehow installed now since the error sounds like it is and the PYTEST_PLUGINS
is now redundant with the entry point plugin specification.
Or... maybe just seeing more stuff will help my light bulb turn on.
I'm running the tests as I described here (
PYTHONPATH="." pytest --pyargs pytest_trio
), but it seems it doesn't recognize the marker correctly:This is the latest git master in an attempt to get the Alpine Linux package working again now pytest has been updated to 6.0.x