diff --git a/setup.py b/setup.py index b5541e7..47cde97 100644 --- a/setup.py +++ b/setup.py @@ -12,17 +12,15 @@ class PyTest(TestCommand): def initialize_options(self): TestCommand.initialize_options(self) - self.pytest_args = [] - - def finalize_options(self): - TestCommand.finalize_options(self) - self.test_args = [] - self.test_suite = True + self.pytest_args = "" def run_tests(self): + import shlex + # import here, cause outside the eggs aren't loaded import pytest - errno = pytest.main(self.pytest_args) + + errno = pytest.main(shlex.split(self.pytest_args)) sys.exit(errno) here = os.path.dirname(__file__)