We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f16fd8 commit 534ea82Copy full SHA for 534ea82
1 file changed
tests/docs/skip_some.rst
@@ -102,3 +102,41 @@ Code in doctest should run only if version condition is satisfied:
102
.. doctest-requires:: pytest>=1.0 pytest>=2.0
103
104
>>> import pytest
105
+
106
107
+Combined Directives
108
+===================
109
110
111
+Marking code with two directives:
112
113
+.. deprecated:: 1.0
114
+.. doctest-requires:: numpy<=0.1
115
116
+ >>> 1 + 3
117
+ 2
118
119
120
+The order should not matter:
121
122
123
124
125
126
127
128
+Try two doctestplus directives:
129
130
+.. doctest-requires:: sys
131
+.. doctest-skip::
132
133
134
135
136
+Switch the order and it should still not run:
137
138
139
140
141
142
0 commit comments