Skip to content

Commit

Permalink
Merge pull request #1683 from alex/only-run-local-tests
Browse files Browse the repository at this point in the history
Tell py.test to only run the tests from the local tests dir.
  • Loading branch information
reaperhulk committed Feb 20, 2015
2 parents 8be38b3 + 8a58e69 commit 9543e4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ def finalize_options(self):
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)


Expand Down

0 comments on commit 9543e4e

Please sign in to comment.