diff options
| author | jvoisin | 2015-11-25 18:14:17 +0100 |
|---|---|---|
| committer | jvoisin | 2015-11-26 15:47:30 +0100 |
| commit | 9ea3c2cbc456bfa9a903eaa0ed6a42a34d12e1c2 (patch) | |
| tree | f7518bb32a47b72aa068f95919aefe020fca333a /setup.py | |
| parent | a71bbcaf57be3076cb7bd38d07cf13e71fcbe611 (diff) | |
Improves the way tests are handled with `python setup.py test`
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 6 |
1 files changed, 2 insertions, 4 deletions
| @@ -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 | ||
| 32 | setup( | 30 | setup( |
| 33 | name='MAT', | 31 | name='MAT', |
