diff options
author | Bruno Oliveira <nicoddemus@gmail.com> | 2016-10-20 12:30:58 -0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-20 12:30:58 -0200 |
commit | 918af99a2ae21c133a0579a8c71e64efdcceba9c (patch) | |
tree | 1ad73a75c4b5e9bbaaf24cd2a7332ad644c43faa /doc/en/goodpractices.rst | |
parent | c0719a5b4cdbab0874301b1a664fbd47ee9e5896 (diff) | |
download | pytest-918af99a2ae21c133a0579a8c71e64efdcceba9c.tar.gz |
Remove example of obsolete pytest.main usage with string
Diffstat (limited to 'doc/en/goodpractices.rst')
-rw-r--r-- | doc/en/goodpractices.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/en/goodpractices.rst b/doc/en/goodpractices.rst index 7c2fdccf2..2a5d4d7c8 100644 --- a/doc/en/goodpractices.rst +++ b/doc/en/goodpractices.rst @@ -236,9 +236,10 @@ your own setuptools Test command for invoking pytest. 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) |