Skip to content

Commit 3d70c7e

Browse files
committed
Update the pytest plugin
1 parent f039e98 commit 3d70c7e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

seleniumbase/plugins/pytest_plugin.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,8 @@ def pytest_configure(config):
12861286
or " -n=" in arg_join
12871287
or "-c" in sys.argv
12881288
or (
1289-
"addopts" in config.inicfg.keys()
1289+
sys.version_info[0] >= 3
1290+
and "addopts" in config.inicfg.keys()
12901291
and (
12911292
"-n=" in config.inicfg["addopts"]
12921293
or "-n " in config.inicfg["addopts"]
@@ -1298,7 +1299,8 @@ def pytest_configure(config):
12981299
"--html" in sys.argv
12991300
or " --html=" in arg_join
13001301
or (
1301-
"addopts" in config.inicfg.keys()
1302+
sys.version_info[0] >= 3
1303+
and "addopts" in config.inicfg.keys()
13021304
and (
13031305
"--html=" in config.inicfg["addopts"]
13041306
or "--html " in config.inicfg["addopts"]

0 commit comments

Comments
 (0)