mirror of
https://github.com/httpie/cli.git
synced 2024-11-28 08:38:44 +02:00
exclude site-packages from .rst file scanning (#820)
make test fails when finding .rst files from site packages installed in the virtual environment
This commit is contained in:
parent
615d887513
commit
e8b22d8b51
@ -19,7 +19,7 @@ def has_docutils():
|
||||
def rst_filenames():
|
||||
# noinspection PyShadowingNames
|
||||
for root, dirnames, filenames in os.walk(os.path.dirname(TESTS_ROOT)):
|
||||
if '.tox' not in root:
|
||||
if '.tox' not in root and 'site-packages' not in root:
|
||||
for filename in fnmatch.filter(filenames, '*.rst'):
|
||||
yield os.path.join(root, filename)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user