diff options
author | Georg Brandl <georg@python.org> | 2014-01-09 17:18:43 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-01-09 17:18:43 +0100 |
commit | 61936d7d0bff110a42288fd692c20e6b0c04d3a8 (patch) | |
tree | 838e493c452e3792150b960151ed74e5832585ed /tests/test_examplefiles.py | |
parent | 3079894c4a1267ac2d368a301932916f134aa891 (diff) | |
parent | 0c290aaf27cc19d15e98fef06bc1a9e0131d9d58 (diff) | |
download | pygments-61936d7d0bff110a42288fd692c20e6b0c04d3a8.tar.gz |
Merged in agilbert/pygments-main-1/agilbert/fix-a-typo-wrong-website-1373559184766 (pull request #217)
Fix a typo (wrong website)
Diffstat (limited to 'tests/test_examplefiles.py')
-rw-r--r-- | tests/test_examplefiles.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_examplefiles.py b/tests/test_examplefiles.py index d785cf3b..c3e3b2f7 100644 --- a/tests/test_examplefiles.py +++ b/tests/test_examplefiles.py @@ -31,10 +31,13 @@ def test_example_files(): absfn = os.path.join(testdir, 'examplefiles', fn) if not os.path.isfile(absfn): continue + + code = open(absfn).read() + outfn = os.path.join(outdir, fn) try: - lx = get_lexer_for_filename(absfn) + lx = get_lexer_for_filename(absfn, code=code) except ClassNotFound: if "_" not in fn: raise AssertionError('file %r has no registered extension, ' |