Merge pull request #1683 from alex/only-run-local-tests

Tell py.test to only run the tests from the local tests dir.
This commit is contained in:
Paul Kehrer 2015-02-20 11:50:28 -06:00
commit 9543e4e2db

View file

@ -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)