Skip to content

Commit 2208270

Browse files
author
João Eiras
committed
conftest.py: allow some tests to run on windows
1 parent 544bcc8 commit 2208270

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

testing/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ def gw(request, execmodel, group):
186186
def execmodel(request):
187187
if request.param != "thread":
188188
pytest.importorskip(request.param)
189-
if sys.platform == "win32":
190-
pytest.xfail("eventlet/gevent do not work onwin32")
189+
if request.param in ("eventlet", "gevent") and sys.platform == "win32":
190+
pytest.xfail(request.param + " does not work on win32")
191191
return get_execmodel(request.param)
192192

193193

testing/test_basics.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,6 @@ def test_stdouterrin_setnull(execmodel):
218218
cap = py.io.StdCaptureFD()
219219
gateway_base.init_popen_io(execmodel)
220220
os.write(1, "hello".encode('ascii'))
221-
if os.name == "nt":
222-
os.write(2, "world")
223221
os.read(0, 1)
224222
out, err = cap.reset()
225223
assert not out

0 commit comments

Comments
 (0)