Open
Description
Currently, if the test is marked with forked
, this plugin tries to run it in a forked subprocess regardless of the current env. Also, adding a conditional skip marker does not help and manifests itself as pytest-dev/pytest#7327.
The following snippet still runs on Windows:
@pytest.mark.skipif(IS_WINDOWS, ...)
@pytest.mark.forked
def test():
...
The workaround that I currently use is:
@pytest.mark.skipif(IS_WINDOWS, ...)
def test():
...
if not IS_WINDOWS:
test = pytest.mark.forked(test)
This could be addressed in a few ways:
- Actually respect skip markers.
- Skip any tests marked with forked when the env is not supported.
- Run these tests but w/o trying to sandbox them.
I think I like 1+2 most.