Skip to content
This repository was archived by the owner on Apr 22, 2024. It is now read-only.

Commit 3407271

Browse files
Fix Travis false positive message
Fix Coverage and Test not throwing errors when tests fail. Co-Authored-By: Carlos Magno <cmagnobarbosa@gmail.com>
1 parent a3387a7 commit 3407271

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ def run(self):
111111
check_call(cmd, shell=True)
112112
except CalledProcessError as exc:
113113
print(exc)
114+
print('Unit tests failed. Fix the error(s) above and try again.')
115+
sys.exit(-1)
114116

115117

116118
class TestCoverage(Test):
@@ -126,6 +128,8 @@ def run(self):
126128
check_call(cmd, shell=True)
127129
except CalledProcessError as exc:
128130
print(exc)
131+
print('Coverage tests failed. Fix the errors above and try again.')
132+
sys.exit(-1)
129133

130134

131135
class DocTest(SimpleCommand):

0 commit comments

Comments
 (0)