Skip to content

Commit b8d308d

Browse files
committedFeb 24, 2025
Fix issue with "pytest -h"
1 parent 4b249b8 commit b8d308d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎seleniumbase/plugins/pytest_plugin.py

+3
Original file line numberDiff line numberDiff line change
@@ -2496,6 +2496,9 @@ def pytest_unconfigure(config):
24962496
"""This runs after all tests have completed with pytest."""
24972497
if "--co" in sys_argv or "--collect-only" in sys_argv:
24982498
return
2499+
reporter = config.pluginmanager.get_plugin("terminalreporter")
2500+
if not hasattr(reporter, "_sessionstarttime"):
2501+
return
24992502
if hasattr(sb_config, "_multithreaded") and sb_config._multithreaded:
25002503
import fasteners
25012504

0 commit comments

Comments
 (0)
Please sign in to comment.