Skip to content

Commit 183a9bf

Browse files
committed
Fix issue with "pytest --help"
1 parent d788616 commit 183a9bf

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

seleniumbase/plugins/pytest_plugin.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2506,8 +2506,13 @@ def pytest_unconfigure(config):
25062506
reporter = config.pluginmanager.get_plugin("terminalreporter")
25072507
if (
25082508
not hasattr(reporter, "_sessionstarttime")
2509-
and not hasattr(reporter, "_session_start")
2510-
and not hasattr(reporter._session_start, "time")
2509+
and (
2510+
not hasattr(reporter, "_session_start")
2511+
or (
2512+
hasattr(reporter, "_session_start")
2513+
and not hasattr(reporter._session_start, "time")
2514+
)
2515+
)
25112516
):
25122517
return
25132518
if hasattr(sb_config, "_multithreaded") and sb_config._multithreaded:

0 commit comments

Comments
 (0)