From 8a58e6997b8b4abfed11a8a23b539e261fde1a28 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Fri, 20 Feb 2015 07:58:39 -0800 Subject: 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. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 32a87ba3..2324d54f 100644 --- a/setup.py +++ b/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) -- cgit v1.2.3