Skip to content

Commit

Permalink
* ignore external-deps directory when collecting tests
Browse files Browse the repository at this point in the history
* requiring specifying 'spyder'  directory is now obsolete
  • Loading branch information
Ryan Clary committed May 9, 2020
1 parent f2d65b1 commit f568f9c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@

def run_pytest(run_slow=False, extra_args=None):
"""Run pytest tests for Spyder."""
pytest_args = ['-vv', '-rw', '--durations=10']
# Be sure to ignore subrepos
pytest_args = ['-vv', '-rw', '--durations=10', '--ignore=./external-deps']

if CI:
# Exit on first failure and show coverage
Expand All @@ -45,8 +46,6 @@ def run_pytest(run_slow=False, extra_args=None):
# Allow user to pass a custom test path to pytest to e.g. run just one test
if extra_args:
pytest_args += extra_args
else:
pytest_args += ['spyder']

print("Pytest Arguments: " + str(pytest_args))
errno = pytest.main(pytest_args)
Expand Down

0 comments on commit f568f9c

Please sign in to comment.