Skip to content

Commit a9e34b2

Browse files
committed
test: ignore packages that may have been uninstalled
1 parent 041d89b commit a9e34b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def test_example_count_checking(self):
6262

6363
def _query_test_case(self, paths, query_function):
6464
for path in paths:
65-
if any(_ in path.parts for _ in IGNORED_FOLDER_NAMES):
65+
if any(_ in path.parts for _ in IGNORED_FOLDER_NAMES) or not path.exists():
6666
continue
6767
with self.subTest(path=path, query_function=query_function):
6868
_LOG.debug('testing %s() on %s', query_function.__name__, path)

0 commit comments

Comments
 (0)