summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorjvoisin2015-11-25 18:14:17 +0100
committerjvoisin2015-11-26 15:47:30 +0100
commit9ea3c2cbc456bfa9a903eaa0ed6a42a34d12e1c2 (patch)
treef7518bb32a47b72aa068f95919aefe020fca333a /setup.py
parenta71bbcaf57be3076cb7bd38d07cf13e71fcbe611 (diff)
Improves the way tests are handled with `python setup.py test`
Diffstat (limited to '')
-rwxr-xr-xsetup.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index 8da1bfb..6d4e320 100755
--- a/setup.py
+++ b/setup.py
@@ -23,11 +23,9 @@ class PyTest(Command):
23 pass 23 pass
24 24
25 def run(self): 25 def run(self):
26 import subprocess
27 import sys
28 os.chdir('test') 26 os.chdir('test')
29 errno = subprocess.call([sys.executable, 'test.py', '--local']) 27 import test
30 raise SystemExit(errno) 28 test.test.run_all_tests()
31 29
32setup( 30setup(
33 name='MAT', 31 name='MAT',