aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 331e57e..3695fad 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
+import sys
from distutils.core import setup, Command
try:
import unittest2 as unittest
@@ -25,7 +26,8 @@ class RunTests(Command):
def run(self):
tests = unittest.TestLoader().discover('test')
runner = unittest.TextTestRunner(verbosity=2)
- runner.run(tests)
+ res = runner.run(tests)
+ sys.exit(int(not res.wasSuccessful()))
classifiers = [