]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- further changes to avoid pytest warnings
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 17 Jan 2017 20:51:02 +0000 (15:51 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 17 Jan 2017 20:51:02 +0000 (15:51 -0500)
Change-Id: Ia83a996ff97a6ba54a0666a32241e570f3852ab4

setup.py

index 2f5c3178cd16068012ceae0d459507efa11b9521..da45c09d6a525cd9d57cba31d1b315807d92d74e 100644 (file)
--- 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