Skip to content

Commit bc587fe

Browse files
author
a good root :)
committed
remove blessing (colorize) dependeces
1 parent 9e9f2ed commit bc587fe

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pytest_dependency.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"""
77

88
import pytest
9+
from blessings import Terminal
910

1011
__version__ = "0.2"
11-
from blessings import Terminal
1212

1313
terminal = Terminal()
1414

@@ -64,9 +64,11 @@ def addResult(self, item, marker, rep):
6464
def checkDepend(self, depends, item):
6565
for i in depends:
6666
if not(i in self.results and self.results[i].isSuccess()):
67-
msg = "%s depends on %s %s" % (terminal.yellow(item.name),
68-
terminal.yellow(i),
69-
terminal.red('(failed)'))
67+
msg = "%s depends on %s (failed)" % (item.name, i)
68+
# color version
69+
# msg = "%s depends on %s %s" % (terminal.yellow(item.name),
70+
# terminal.yellow(i),
71+
# terminal.red('(failed)'))
7072
pytest.skip(msg)
7173

7274

0 commit comments

Comments
 (0)