From e8b22d8b5123b71fab43de41e3c43b5bf05f5c56 Mon Sep 17 00:00:00 2001 From: Roger Wernersson Date: Wed, 4 Dec 2019 13:37:57 +0100 Subject: [PATCH] exclude site-packages from .rst file scanning (#820) make test fails when finding .rst files from site packages installed in the virtual environment --- tests/test_docs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_docs.py b/tests/test_docs.py index 3966f81d..304d8ef9 100644 --- a/tests/test_docs.py +++ b/tests/test_docs.py @@ -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)