Skip to content

Commit 2757a57

Browse files
remove terminal color messages and fix skip message when a dependency is not success
1 parent f9721b2 commit 2757a57

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

pytest_dependency.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66
"""
77

88
import pytest
9-
# from blessings import Terminal
109

1110
__version__ = "0.2"
1211

13-
# terminal = Terminal()
1412

1513
class DependencyItemStatus(object):
1614
"""Status of a test item in a dependency manager.
@@ -64,12 +62,7 @@ def addResult(self, item, marker, rep):
6462
def checkDepend(self, depends, item):
6563
for i in depends:
6664
if not(i in self.results and self.results[i].isSuccess()):
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)'))
72-
pytest.skip(msg)
65+
pytest.skip("%s depends on %s" % (item.name, i))
7366

7467

7568
def depends(request, other):

0 commit comments

Comments
 (0)