From 34eca688cabcbe1bfb7f3cf7642f065d0b7d765f Mon Sep 17 00:00:00 2001 From: Xavier Ordoquy Date: Fri, 13 Feb 2015 02:03:06 +0100 Subject: [PATCH] Fixed the setup test --- setup.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 13f5cae2..0512d6b6 100755 --- a/setup.py +++ b/setup.py @@ -82,17 +82,20 @@ tests_require = [ class PyTest(TestCommand): + def initialize_options(self): TestCommand.initialize_options(self) - self.test_suite = 'tests' + self.pytest_args = [] def finalize_options(self): TestCommand.finalize_options(self) + self.test_args = [] + self.test_suite = True def run_tests(self): # import here, cause outside the eggs aren't loaded import pytest - errno = pytest.main(self.test_args) + errno = pytest.main(self.pytest_args) sys.exit(errno)