mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
Tell py.test to only run the tests from the local tests dir.
Right now if you have a virtualenv or something in the same directory it will recurse into it to run tests.
This commit is contained in:
parent
8be38b3927
commit
8a58e6997b
1 changed files with 2 additions and 1 deletions
3
setup.py
3
setup.py
|
|
@ -135,7 +135,8 @@ class PyTest(test):
|
|||
def run_tests(self):
|
||||
# Import here because in module scope the eggs are not loaded.
|
||||
import pytest
|
||||
errno = pytest.main(self.test_args)
|
||||
test_args = [os.path.join(base_dir, "tests")]
|
||||
errno = pytest.main(test_args)
|
||||
sys.exit(errno)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue