Skip to content

Commit

Permalink
pytester: runpytest_inprocess: print command/cwd
Browse files Browse the repository at this point in the history
This brings it in line with what is done in `run` /
`runpytest_subprocess`.
  • Loading branch information
blueyed committed Oct 28, 2019
1 parent ec27363 commit f7ecd72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/5107.improvement.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
``testdir.runpytest_inprocess`` now prints the command and current working
directory, bringing it in line with
``testdir.run`` / ``testdir.runpytest_subprocess``.
2 changes: 2 additions & 0 deletions src/_pytest/pytester.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,8 @@ def runpytest_inprocess(self, *args, **kwargs) -> RunResult:
"""
syspathinsert = kwargs.pop("syspathinsert", False)

print("running (inline): pytest", *args)
print(" in:", py.path.local())
if syspathinsert:
self.syspathinsert()
now = time.time()
Expand Down

0 comments on commit f7ecd72

Please sign in to comment.