We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a3f131 commit 0fb31f8Copy full SHA for 0fb31f8
doc/en/skipping.rst
@@ -54,6 +54,15 @@ by calling the ``pytest.skip(reason)`` function:
54
if not valid_config():
55
pytest.skip("unsupported configuration")
56
57
+It is also possible to skip the whole module using
58
+``pytest.skip(reason, allow_module_level=True)`` at the module level:
59
+
60
61
+.. code-block:: python
62
63
+ if not enabled_platform_edge_cases():
64
+ pytest.skip("unsupported platform", allow_module_level=True)
65
66
The imperative method is useful when it is not possible to evaluate the skip condition
67
during import time.
68
0 commit comments