Fix issue with "pytest -h"
This commit is contained in:
parent
4b249b8bde
commit
b8d308d3b4
|
@ -2496,6 +2496,9 @@ def pytest_unconfigure(config):
|
||||||
"""This runs after all tests have completed with pytest."""
|
"""This runs after all tests have completed with pytest."""
|
||||||
if "--co" in sys_argv or "--collect-only" in sys_argv:
|
if "--co" in sys_argv or "--collect-only" in sys_argv:
|
||||||
return
|
return
|
||||||
|
reporter = config.pluginmanager.get_plugin("terminalreporter")
|
||||||
|
if not hasattr(reporter, "_sessionstarttime"):
|
||||||
|
return
|
||||||
if hasattr(sb_config, "_multithreaded") and sb_config._multithreaded:
|
if hasattr(sb_config, "_multithreaded") and sb_config._multithreaded:
|
||||||
import fasteners
|
import fasteners
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue