diff --git a/setup.py b/setup.py index 7428e69..ec989ca 100644 --- a/setup.py +++ b/setup.py @@ -80,7 +80,7 @@ setup( zip_safe=False, install_requires=install_requires, tests_require=tests_require, - test_suite="tests.run_tests.run", + test_suite="nose.collector", entry_points={ "console_scripts": console_script_targets, } diff --git a/tests/run_tests.py b/tests/run_tests.py deleted file mode 100644 index d6db309..0000000 --- a/tests/run_tests.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf8 -*- - -from __future__ import print_function - -import sys -import atexit -import nose - -from os.path import dirname, abspath - - -DEFAULT_PARAMS = [ - "nosetests", - "--with-coverage", - "--cover-package=breadability", - "--cover-erase", -] - - -@atexit.register -def exit_function(msg="Shutting down"): - print(msg, file=sys.stderr) - - -def run(argv=[]): - sys.exitfunc = exit_function - - nose.run( - argv=DEFAULT_PARAMS + argv, - defaultTest=abspath(dirname(__file__)), - ) - - -if __name__ == "__main__": - run(sys.argv[1:])