File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -345,14 +345,21 @@ def __init__(self) -> None:
345
345
import _pytest .assertion
346
346
347
347
super ().__init__ ("pytest" )
348
- # The objects are module objects, only used generically.
349
- self ._conftest_plugins : Set [types .ModuleType ] = set ()
350
348
351
- # State related to local conftest plugins.
349
+ # -- State related to local conftest plugins.
350
+ # All loaded conftest modules.
351
+ self ._conftest_plugins : Set [types .ModuleType ] = set ()
352
+ # All conftest modules applicable for a directory.
353
+ # This includes the directory's own conftest modules as well
354
+ # as those of its parent directories.
352
355
self ._dirpath2confmods : Dict [Path , List [types .ModuleType ]] = {}
356
+ # The conftest module of a conftest path.
353
357
self ._conftestpath2mod : Dict [Path , types .ModuleType ] = {}
358
+ # Cutoff directory above which conftests are no longer discovered.
354
359
self ._confcutdir : Optional [Path ] = None
360
+ # If set, conftest loading is skipped.
355
361
self ._noconftest = False
362
+
356
363
self ._duplicatepaths : Set [Path ] = set ()
357
364
358
365
# plugins that were explicitly skipped with pytest.skip
You can’t perform that action at this time.
0 commit comments