@@ -199,22 +199,17 @@ def test_example(self):
199
199
Eg. "python my_test.py" instead of "pytest my_test.py"."""
200
200
if name == "__main__": # Test called with "python"
201
201
import subprocess
202
- from pytest import main as pytest_main
203
202
all_args = []
204
203
for arg in args:
205
204
all_args.append(arg)
206
205
for arg in sys.argv[1:]:
207
206
all_args.append(arg)
208
- multi = False
209
- for arg in all_args:
210
- if arg.startswith("-n") or arg.startswith("--numprocesses"):
211
- multi = True
212
- if multi:
213
- subprocess.call(
214
- [sys.executable, "-m", "pytest", file, "-s", *all_args]
215
- )
216
- else:
217
- pytest_main([file, "-s", *all_args])
207
+ # See: https://stackoverflow.com/a/54666289/7058266
208
+ # from pytest import main as pytest_main
209
+ # pytest_main([file, "-s", *all_args])
210
+ subprocess.call(
211
+ [sys.executable, "-m", "pytest", file, "-s", *all_args]
212
+ )
218
213
219
214
def open(self, url):
220
215
"""Navigates the current browser window to the specified page."""
@@ -13586,15 +13581,6 @@ def __disable_beforeunload_as_needed(self):
13586
13581
13587
13582
############
13588
13583
13589
- @decorators.deprecated("The Driver Manager prevents old drivers.")
13590
- def is_chromedriver_too_old(self):
13591
- """Before chromedriver 73, there was no version check, which
13592
- means it's possible to run a new Chrome with old drivers."""
13593
- self.__fail_if_not_using_chrome("is_chromedriver_too_old()")
13594
- if int(self.get_chromedriver_version().split(".")[0]) < 73:
13595
- return True # chromedriver is too old! Please upgrade!
13596
- return False
13597
-
13598
13584
@decorators.deprecated("You should use re.escape() instead.")
13599
13585
def jq_format(self, code):
13600
13586
# DEPRECATED - re.escape() already performs this action.
0 commit comments