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 9815b69 commit 8a8b1f6Copy full SHA for 8a8b1f6
src/pytest/__init__.py
@@ -44,6 +44,7 @@
44
from _pytest.warning_types import PytestUnhandledCoroutineWarning
45
from _pytest.warning_types import PytestUnknownMarkWarning
46
from _pytest.warning_types import PytestWarning
47
+from pytest import collect
48
49
50
set_trace = __pytestPDB.set_trace
@@ -54,6 +55,7 @@
54
55
"approx",
56
"Class",
57
"cmdline",
58
+ "collect",
59
"Collector",
60
"deprecated_call",
61
"exit",
testing/test_meta.py
@@ -39,3 +39,11 @@ def test_no_warnings(module):
39
"-c", "import {}".format(module),
40
))
41
# fmt: on
42
+
43
+def test_pytest_collect_attribute(_sys_snapshot):
+ del sys.modules["pytest"]
+ import pytest
+ assert pytest.collect
0 commit comments