Allow multithreaded browser sessions to be reused when specified

This commit is contained in:
Michael Mintz 2020-05-07 02:47:14 -04:00
parent 18a8cc0f2b
commit 39e4e9c4e7
1 changed files with 2 additions and 2 deletions

View File

@ -497,8 +497,8 @@ def pytest_configure(config):
if sb_config.reuse_session:
arg_join = " ".join(sys.argv)
if ("-n" in sys.argv) or ("-n=" in arg_join) or (arg_join == "-c"):
# Can't "reuse_session" if multithreaded
sb_config.reuse_session = False
# sb_config.reuse_session = False
pass # Allow multithreaded browser sessions to be reused now
if "linux" in sys.platform and (
not sb_config.headed and not sb_config.headless):