diff --git a/dill/tests/__main__.py b/dill/tests/__main__.py index 1570b399..21f03cd9 100644 --- a/dill/tests/__main__.py +++ b/dill/tests/__main__.py @@ -23,8 +23,13 @@ if __name__ == '__main__': + failed = 0 for test in tests: p = sp.Popen([python, test], shell=shell).wait() - if not p: - print('.', end='', flush=True) - print() + if p: + print('F', end='') + failed = 1 + else: + print('.', end='') + print('') + exit(failed) diff --git a/tox.ini b/tox.ini index a63d8067..be9a124d 100644 --- a/tox.ini +++ b/tox.ini @@ -18,5 +18,4 @@ whitelist_externals = bash commands = {envpython} -m pip install . - bash -c "failed=0; for test in dill/tests/__main__.py; do echo $test; \ - {envpython} $test || failed=1; done; exit $failed" + {envpython} dill/tests/__main__.py