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
I have a question regarding the plugin when running in a read-only system like Databricks job clusters. I have disabled __pycache__ creation when running pytest with:
PYTHONDONTWRITEBYTECODE=1 and sys.dont_write_bytecode = True.
The tests were running successfully, but when I tried to enable the pytest-xdist plugin support with the -n logical or -n auto argument, pytest is creating the __pycache__ directory again and my run failed. I am guessing this is related to the pytest-xdist plugin.
Do you know if there is a way to tell pytest-xdist no to generate the __pycache__ directory?
Aditional context
The text was updated successfully, but these errors were encountered:
dtcMLOps
changed the title
[Question] running pytest-xdist in a read-only system
[Question] running pytest-xdist in a read-only system
Jan 18, 2024
Hi team,
Greetings.
I have a question regarding the plugin when running in a read-only system like Databricks job clusters. I have disabled
__pycache__
creation when runningpytest
with:PYTHONDONTWRITEBYTECODE=1
andsys.dont_write_bytecode = True
.The tests were running successfully, but when I tried to enable the
pytest-xdist
plugin support with the-n logical
or-n auto
argument, pytest is creating the__pycache__
directory again and my run failed. I am guessing this is related to thepytest-xdist
plugin.Do you know if there is a way to tell
pytest-xdist
no to generate the__pycache__
directory?Aditional context
The text was updated successfully, but these errors were encountered: