summaryrefslogtreecommitdiff
path: root/tests/test_examplefiles.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_examplefiles.py')
-rw-r--r--tests/test_examplefiles.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_examplefiles.py b/tests/test_examplefiles.py
index 924e1184..f43abf9b 100644
--- a/tests/test_examplefiles.py
+++ b/tests/test_examplefiles.py
@@ -46,6 +46,10 @@ def test_example_files():
if not os.path.isfile(absfn):
continue
+ extension = os.getenv('TEST_EXT')
+ if extension and not absfn.endswith(extension):
+ continue
+
print(absfn)
with open(absfn, 'rb') as f:
code = f.read()