diff options
author | thatch <devnull@localhost> | 2010-05-05 17:08:30 -0700 |
---|---|---|
committer | thatch <devnull@localhost> | 2010-05-05 17:08:30 -0700 |
commit | 5f4ef3424bd4fe82df6527b8c303cfbdc9b14a9f (patch) | |
tree | 3f77175a084fcf7a5b299dbd8ead4d7af5d827d6 /tests/test_examplefiles.py | |
parent | 9aaa94a11050a8dea4649e76fee572ab10c46ee6 (diff) | |
download | pygments-5f4ef3424bd4fe82df6527b8c303cfbdc9b14a9f.tar.gz |
Exclude editor temp files from examplefiles tests
Diffstat (limited to 'tests/test_examplefiles.py')
-rw-r--r-- | tests/test_examplefiles.py | 3 |
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 |