From f2028dc5afec506fd3ad8c78b0275e76bf172b2a Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 17 Jan 2017 15:51:02 -0500 Subject: [PATCH] - further changes to avoid pytest warnings Change-Id: Ia83a996ff97a6ba54a0666a32241e570f3852ab4 --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 2f5c3178cd..da45c09d6a 100644 --- a/setup.py +++ b/setup.py @@ -93,10 +93,10 @@ class PyTest(TestCommand): self.test_suite = True def run_tests(self): + import shlex # import here, cause outside the eggs aren't loaded import pytest - errno = pytest.main( - " ".join(self.default_options) + " " + self.pytest_args) + errno = pytest.main(self.default_options + shlex.split(self.pytest_args)) sys.exit(errno) cmdclass['test'] = PyTest -- 2.47.2