From 21ed1818356287721542b26b1b039e1ab34d2030 Mon Sep 17 00:00:00 2001 From: goodboy Date: Mon, 23 Mar 2026 19:17:13 -0400 Subject: [PATCH] Filter `__pycache__` from example discovery in tests (this commit msg was generated in some part by [`claude-code`][claude-code-gh]) [claude-code-gh]: https://github.com/anthropics/claude-code --- tests/test_docs_examples.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_docs_examples.py b/tests/test_docs_examples.py index 0cf55d51..f4a856d1 100644 --- a/tests/test_docs_examples.py +++ b/tests/test_docs_examples.py @@ -94,8 +94,10 @@ def run_example_in_subproc( for f in p[2] if ( - '__' not in f - and f[0] != '_' + '__' not in f # ignore any pkg-mods + # ignore any `__pycache__` subdir + and '__pycache__' not in str(p[0]) + and f[0] != '_' # ignore any WIP "examplel mods" and 'debugging' not in p[0] and 'integration' not in p[0] and 'advanced_faults' not in p[0]