summaryrefslogtreecommitdiff
path: root/tests/test_examplefiles.py
diff options
context:
space:
mode:
authorthatch <devnull@localhost>2010-05-05 17:08:30 -0700
committerthatch <devnull@localhost>2010-05-05 17:08:30 -0700
commit5f4ef3424bd4fe82df6527b8c303cfbdc9b14a9f (patch)
tree3f77175a084fcf7a5b299dbd8ead4d7af5d827d6 /tests/test_examplefiles.py
parent9aaa94a11050a8dea4649e76fee572ab10c46ee6 (diff)
downloadpygments-5f4ef3424bd4fe82df6527b8c303cfbdc9b14a9f.tar.gz
Exclude editor temp files from examplefiles tests
Diffstat (limited to 'tests/test_examplefiles.py')
-rw-r--r--tests/test_examplefiles.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_examplefiles.py b/tests/test_examplefiles.py
index d56eb7c3..633111f9 100644
--- a/tests/test_examplefiles.py
+++ b/tests/test_examplefiles.py
@@ -20,6 +20,9 @@ from pygments.util import ClassNotFound, b
def test_example_files():
testdir = os.path.dirname(__file__)
for fn in os.listdir(os.path.join(testdir, 'examplefiles')):
+ if fn.startswith('.') or fn.endswith('#'):
+ continue
+
absfn = os.path.join(testdir, 'examplefiles', fn)
if not os.path.isfile(absfn):
continue