Skip to content

Commit 5068da6

Browse files
committed
test: print test suite headers to stderr
It is needed, because all other test output is going to stderr, so headers we print need to be printed to stderr too.
1 parent 1c9739a commit 5068da6

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

unit/suites/test_dml.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# -*- coding: utf-8 -*-
22

3+
from __future__ import print_function
4+
5+
import sys
36
import unittest
47
import tarantool
58

@@ -8,8 +11,8 @@
811
class TestSuite_Request(unittest.TestCase):
912
@classmethod
1013
def setUpClass(self):
11-
print(' DML '.center(70, '='))
12-
print('-' * 70)
14+
print(' DML '.center(70, '='), file=sys.stderr)
15+
print('-' * 70, file=sys.stderr)
1316
self.srv = TarantoolServer()
1417
self.srv.script = 'unit/suites/box.lua'
1518
self.srv.start()

unit/suites/test_protocol.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
#!/usr/bin/env ipython
22

3+
from __future__ import print_function
4+
5+
import sys
36
import unittest
47
from tarantool.utils import greeting_decode, version_id
58
import uuid
69

710
class TestSuite_Protocol(unittest.TestCase):
811
@classmethod
912
def setUpClass(self):
10-
print(' PROTOCOL '.center(70, '='))
11-
print('-' * 70)
13+
print(' PROTOCOL '.center(70, '='), file=sys.stderr)
14+
print('-' * 70, file=sys.stderr)
1215

1316
def test_00_greeting_1_6(self):
1417
buf = "Tarantool 1.6.6 \n" + \

unit/suites/test_schema.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
#!/usr/bin/env ipython
22

3+
from __future__ import print_function
4+
5+
import sys
36
import unittest
47
import tarantool
58
from .lib.tarantool_server import TarantoolServer
69

710
class TestSuite_Schema(unittest.TestCase):
811
@classmethod
912
def setUpClass(self):
10-
print(' SCHEMA '.center(70, '='))
11-
print('-' * 70)
13+
print(' SCHEMA '.center(70, '='), file=sys.stderr)
14+
print('-' * 70, file=sys.stderr)
1215
self.srv = TarantoolServer()
1316
self.srv.script = 'unit/suites/box.lua'
1417
self.srv.start()

0 commit comments

Comments
 (0)