pytester: runpytest_inprocess: use splitlines()
This avoids having a trailing empty lines always.
This commit is contained in:
@@ -878,7 +878,9 @@ class Testdir:
|
||||
sys.stdout.write(out)
|
||||
sys.stderr.write(err)
|
||||
|
||||
res = RunResult(reprec.ret, out.split("\n"), err.split("\n"), time.time() - now)
|
||||
res = RunResult(
|
||||
reprec.ret, out.splitlines(), err.splitlines(), time.time() - now
|
||||
)
|
||||
res.reprec = reprec
|
||||
return res
|
||||
|
||||
|
||||
Reference in New Issue
Block a user