Tests: use blocking to print unit.log files.

This commit is contained in:
Andrei Zeliankou
2020-03-10 18:13:47 +00:00
parent f36f0f2461
commit f092b093f5

View File

@@ -371,7 +371,7 @@ class TestUnit(unittest.TestCase):
# set stdout to non-blocking
if TestUnit.detailed:
if TestUnit.detailed or TestUnit.print_log:
fcntl.fcntl(sys.stdout.fileno(), fcntl.F_SETFL, 0)
def _print_log(self, data=None):