1
0
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:
Roger Wernersson 2019-12-04 13:37:57 +01:00 committed by Jakub Roztocil
parent 615d887513
commit e8b22d8b51

View File

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