From: Mike Bayer Date: Tue, 17 Jan 2017 20:51:02 +0000 (-0500) Subject: - further changes to avoid pytest warnings X-Git-Tag: rel_1_1_5~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2028dc5afec506fd3ad8c78b0275e76bf172b2a;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - further changes to avoid pytest warnings Change-Id: Ia83a996ff97a6ba54a0666a32241e570f3852ab4 --- 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