Open ssbarnea opened 11 months ago
Hi, @ssbarnea
I'm unable to reproduce this warning in Windows and Ubuntu 24
Bold analysis of the reason:
pytest regards the file storing the configuration location as rootdir
and then attempts to create cachedir under rootdir.
Solution approach: Disable cachedir
You can suggest trying the following command:
pytest -c /dev/null -o cache-dir=/dev/null
While not really a serious bug, it seems confusing to get this behavior:
I wanted to disable local config on purpose for debugging some behaviors and passing
/dev/null
is quite a common approach. Also, I would argue that having the config file on a read-only location might happen in real life.Is there a way to avoid this warning?