aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/src/Lib/unittest/runner.py
diff options
context:
space:
mode:
authorshadchin <shadchin@yandex-team.ru>2022-02-10 16:44:30 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:44:30 +0300
commit2598ef1d0aee359b4b6d5fdd1758916d5907d04f (patch)
tree012bb94d777798f1f56ac1cec429509766d05181 /contrib/tools/python3/src/Lib/unittest/runner.py
parent6751af0b0c1b952fede40b19b71da8025b5d8bcf (diff)
downloadydb-2598ef1d0aee359b4b6d5fdd1758916d5907d04f.tar.gz
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/python3/src/Lib/unittest/runner.py')
-rw-r--r--contrib/tools/python3/src/Lib/unittest/runner.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/contrib/tools/python3/src/Lib/unittest/runner.py b/contrib/tools/python3/src/Lib/unittest/runner.py
index caf159002d..dc65682650 100644
--- a/contrib/tools/python3/src/Lib/unittest/runner.py
+++ b/contrib/tools/python3/src/Lib/unittest/runner.py
@@ -59,7 +59,7 @@ class TextTestResult(result.TestResult):
super(TextTestResult, self).addSuccess(test)
if self.showAll:
self.stream.writeln("ok")
- self.stream.flush()
+ self.stream.flush()
elif self.dots:
self.stream.write('.')
self.stream.flush()
@@ -68,7 +68,7 @@ class TextTestResult(result.TestResult):
super(TextTestResult, self).addError(test, err)
if self.showAll:
self.stream.writeln("ERROR")
- self.stream.flush()
+ self.stream.flush()
elif self.dots:
self.stream.write('E')
self.stream.flush()
@@ -77,7 +77,7 @@ class TextTestResult(result.TestResult):
super(TextTestResult, self).addFailure(test, err)
if self.showAll:
self.stream.writeln("FAIL")
- self.stream.flush()
+ self.stream.flush()
elif self.dots:
self.stream.write('F')
self.stream.flush()
@@ -86,7 +86,7 @@ class TextTestResult(result.TestResult):
super(TextTestResult, self).addSkip(test, reason)
if self.showAll:
self.stream.writeln("skipped {0!r}".format(reason))
- self.stream.flush()
+ self.stream.flush()
elif self.dots:
self.stream.write("s")
self.stream.flush()
@@ -95,7 +95,7 @@ class TextTestResult(result.TestResult):
super(TextTestResult, self).addExpectedFailure(test, err)
if self.showAll:
self.stream.writeln("expected failure")
- self.stream.flush()
+ self.stream.flush()
elif self.dots:
self.stream.write("x")
self.stream.flush()
@@ -104,7 +104,7 @@ class TextTestResult(result.TestResult):
super(TextTestResult, self).addUnexpectedSuccess(test)
if self.showAll:
self.stream.writeln("unexpected success")
- self.stream.flush()
+ self.stream.flush()
elif self.dots:
self.stream.write("u")
self.stream.flush()
@@ -112,7 +112,7 @@ class TextTestResult(result.TestResult):
def printErrors(self):
if self.dots or self.showAll:
self.stream.writeln()
- self.stream.flush()
+ self.stream.flush()
self.printErrorList('ERROR', self.errors)
self.printErrorList('FAIL', self.failures)
@@ -122,7 +122,7 @@ class TextTestResult(result.TestResult):
self.stream.writeln("%s: %s" % (flavour,self.getDescription(test)))
self.stream.writeln(self.separator2)
self.stream.writeln("%s" % err)
- self.stream.flush()
+ self.stream.flush()
class TextTestRunner(object):
@@ -226,5 +226,5 @@ class TextTestRunner(object):
self.stream.writeln(" (%s)" % (", ".join(infos),))
else:
self.stream.write("\n")
- self.stream.flush()
+ self.stream.flush()
return result