From a7f880fa1f583b322e179985f45008c5c5701c76 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sat, 9 May 2015 10:24:33 -0300 Subject: [PATCH] Make "running" output from testdir.run copy/pastable fix 741 --HG-- branch : issue-741-pytester-output --- _pytest/pytester.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_pytest/pytester.py b/_pytest/pytester.py index 938607b65..eedbbd39c 100644 --- a/_pytest/pytester.py +++ b/_pytest/pytester.py @@ -871,7 +871,8 @@ class Testdir: cmdargs = [str(x) for x in cmdargs] p1 = self.tmpdir.join("stdout") p2 = self.tmpdir.join("stderr") - print_("running", cmdargs, "curdir=", py.path.local()) + print_("running:", ' '.join(cmdargs)) + print_(" in:", str(py.path.local())) f1 = codecs.open(str(p1), "w", encoding="utf8") f2 = codecs.open(str(p2), "w", encoding="utf8") try: