Make "running" output from testdir.run copy/pastable

fix 741

--HG--
branch : issue-741-pytester-output
This commit is contained in:
Bruno Oliveira 2015-05-09 10:24:33 -03:00
parent c4bd3c672b
commit a7f880fa1f
1 changed files with 2 additions and 1 deletions

View File

@ -871,7 +871,8 @@ class Testdir:
cmdargs = [str(x) for x in cmdargs] cmdargs = [str(x) for x in cmdargs]
p1 = self.tmpdir.join("stdout") p1 = self.tmpdir.join("stdout")
p2 = self.tmpdir.join("stderr") 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") f1 = codecs.open(str(p1), "w", encoding="utf8")
f2 = codecs.open(str(p2), "w", encoding="utf8") f2 = codecs.open(str(p2), "w", encoding="utf8")
try: try: