mirror of https://github.com/python/cpython
fix newline issue in test summary
This commit is contained in:
parent
2bf74fd0ac
commit
a473f00cac
|
@ -943,7 +943,7 @@ class TextTestRunner(object):
|
|||
if errored:
|
||||
infos.append("errors=%d" % errored)
|
||||
else:
|
||||
self.stream.writeln("OK")
|
||||
self.stream.write("OK")
|
||||
if skipped:
|
||||
infos.append("skipped=%d" % skipped)
|
||||
if expectedFails:
|
||||
|
@ -952,6 +952,8 @@ class TextTestRunner(object):
|
|||
infos.append("unexpected successes=%d" % unexpectedSuccesses)
|
||||
if infos:
|
||||
self.stream.writeln(" (%s)" % (", ".join(infos),))
|
||||
else:
|
||||
self.stream.write("\n")
|
||||
return result
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue