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 4df39e3 commit 6ae0f74Copy full SHA for 6ae0f74
doc/en/example/pythoncollection.rst
@@ -313,3 +313,12 @@ interpreter:
313
collect_ignore = ["setup.py"]
314
if sys.version_info[0] > 2:
315
collect_ignore_glob = ["*_py2.py"]
316
+
317
+Since Pytest 2.6, users can prevent pytest from discovering classes that start
318
+with ``Test`` by setting a boolean ``__test__`` attribute to ``False``.
319
320
+.. code-block:: python
321
322
+ # Will not be discovered as a test
323
+ class TestClass:
324
+ __test__ = False
0 commit comments