Skip to content

Commit ebcc68d

Browse files
authored
Merge pull request #10404 from jdufresne/run-from
Remove unused argument run_from from PipTestEnvironment.run()
2 parents 135faab + d4a2f89 commit ebcc68d

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

news/fc8c1e99-1f6b-48ff-8864-39017f08c55b.trivial.rst

Whitespace-only changes.

tests/lib/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,6 @@ def run(
552552
self,
553553
*args,
554554
cwd=None,
555-
run_from=None,
556555
allow_stderr_error=None,
557556
allow_stderr_warning=None,
558557
allow_error=None,
@@ -580,8 +579,7 @@ def run(
580579
if self.verbose:
581580
print(f">> running {args} {kw}")
582581

583-
assert not cwd or not run_from, "Don't use run_from; it's going away"
584-
cwd = cwd or run_from or self.cwd
582+
cwd = cwd or self.cwd
585583
if sys.platform == "win32":
586584
# Partial fix for ScriptTest.run using `shell=True` on Windows.
587585
args = [str(a).replace("^", "^^").replace("&", "^&") for a in args]

0 commit comments

Comments
 (0)