Skip to content

Commit d4a2f89

Browse files
committed
Remove unused argument run_from from PipTestEnvironment.run()
1 parent 135faab commit d4a2f89

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)