summaryrefslogtreecommitdiffhomepage
path: root/test/unit
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2020-03-10 18:13:47 +0000
committerAndrei Zeliankou <zelenkov@nginx.com>2020-03-10 18:13:47 +0000
commitf092b093f561f0bffeb990c176246c6f6413401d (patch)
treed423c5b206c18cb79cb2db186961816a3a0a05c3 /test/unit
parentf36f0f2461a7f0447e92f977ff9c0c71fcb08ffb (diff)
downloadunit-f092b093f561f0bffeb990c176246c6f6413401d.tar.gz
unit-f092b093f561f0bffeb990c176246c6f6413401d.tar.bz2
Tests: use blocking to print unit.log files.
Diffstat (limited to '')
-rw-r--r--test/unit/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/main.py b/test/unit/main.py
index a7981c1c..b38d87e2 100644
--- a/test/unit/main.py
+++ b/test/unit/main.py
@@ -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):