mirror of
https://github.com/httpie/cli.git
synced 2025-02-08 13:49:31 +01: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():
|
def rst_filenames():
|
||||||
# noinspection PyShadowingNames
|
# noinspection PyShadowingNames
|
||||||
for root, dirnames, filenames in os.walk(os.path.dirname(TESTS_ROOT)):
|
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'):
|
for filename in fnmatch.filter(filenames, '*.rst'):
|
||||||
yield os.path.join(root, filename)
|
yield os.path.join(root, filename)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user