Skip to content

Commit b945b95

Browse files
committed
Add a warning that the documented solution for logical combinations of
dependencies is based on undocumented pytest features
1 parent 65dc1f5 commit b945b95

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/src/advanced.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,11 @@ list.
108108

109109
Other logical combinations of dependencies are conceivable and may be
110110
implemented in a similar way, according to the use case at hand.
111+
112+
.. note::
113+
The `depends_or()` helper function above is based on pytest
114+
internals: skipping of tests works by raising an exception and the
115+
exception class is exposed as :attr:`pytest.skip.Exception`. This
116+
is not documented in pytest. It has been tested to work for pytest
117+
versions 3.7.0 through 6.2.5, but it is not guaranteed to be stable
118+
for future pytest versions.

0 commit comments

Comments
 (0)