Skip to content

Commit 877c890

Browse files
author
Rakshil Modi
committed
Ignored Hidden Files from example folder during test
Updated the comment Resolving the edge case of hidden file
1 parent 485fb4d commit 877c890

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/functional/docs/test_examples.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ def _get_all_doc_examples():
8484
for root, _, filenames in os.walk(EXAMPLES_DIR):
8585
for filename in filenames:
8686
full_path = os.path.join(root, filename)
87-
if not filename.endswith('.rst'):
87+
if filename.startswith('.'):
88+
# Ignore hidden files as it starts with "."
89+
continue
90+
if not filename.endswith('.rst'):
8891
other_doc_examples.append(full_path)
8992
continue
9093
rst_doc_examples.append(full_path)

0 commit comments

Comments
 (0)