Skip to content

Commit 5719422

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1d74520 commit 5719422

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/_pytest/pytester.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,12 +1519,12 @@ def runpytest_subprocess(
15191519

15201520
if hasattr(self, "_syspath_prepended"):
15211521
prepend_command = (
1522-
f"import sys; sys.path.insert(0, {repr(self._syspath_prepended)});"
1522+
f"import sys; sys.path.insert(0, {self._syspath_prepended!r});"
15231523
)
15241524
pytest_command = [
15251525
python_executable,
15261526
"-c",
1527-
f"{prepend_command} import pytest; pytest.main({repr(list(args))})",
1527+
f"{prepend_command} import pytest; pytest.main({list(args)!r})",
15281528
]
15291529
else:
15301530
pytest_command.extend(str(arg) for arg in args)

0 commit comments

Comments
 (0)