Exit with error when python setup.py test fails

This commit is contained in:
Iuri de Silvio
2014-04-19 15:25:43 -03:00
parent d40cdfbcd0
commit 569d35bfca
+2 -2
View File
@@ -33,8 +33,8 @@ if sys.argv[-1] == 'test':
print('py.test required.')
sys.exit(1)
os.system('py.test test_tablib.py')
sys.exit()
errors = os.system('py.test test_tablib.py')
sys.exit(bool(errors))
setup(
name='tablib',