Skip to content

Commit 8d3ed4b

Browse files
committed
Add a warning about the xfail support state
1 parent 3312a84 commit 8d3ed4b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/pytest_forked/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import os
2+
import warnings
3+
24
import py
35
# we know this bit is bad, but we cant help it with the current pytest setup
46
from _pytest import runner
@@ -102,5 +104,10 @@ def report_process_crash(item, result):
102104
crash_info=info,
103105
)
104106
)
107+
warnings.warn(
108+
'pytest-forked xfail support is incomplete at the moment and may '
109+
'output a misleading reason message',
110+
RuntimeWarning,
111+
)
105112

106113
return rep

0 commit comments

Comments
 (0)