summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES2
-rw-r--r--tests/run.py1
-rw-r--r--tests/test_basic_api.py5
-rw-r--r--tests/test_clexer.py2
-rw-r--r--tests/test_lexers.py10
5 files changed, 9 insertions, 11 deletions
diff --git a/CHANGES b/CHANGES
index 22ce3ceb..5a3438c9 100644
--- a/CHANGES
+++ b/CHANGES
@@ -5,6 +5,8 @@ Version 0.6
-----------
(released Nov XX, 2006)
+- Some improvements in the C(++) lexers handling comments and line
+ continuations.
Version 0.5.1
diff --git a/tests/run.py b/tests/run.py
index f21b2a39..f7657180 100644
--- a/tests/run.py
+++ b/tests/run.py
@@ -77,6 +77,7 @@ def run_tests():
for testfile in files:
globs = {}
try:
+ __builtin__.testfile = testfile
execfile(join(testdir, testfile), globs)
except Exception, exc:
raise
diff --git a/tests/test_basic_api.py b/tests/test_basic_api.py
index c929fde8..e5ba623d 100644
--- a/tests/test_basic_api.py
+++ b/tests/test_basic_api.py
@@ -20,6 +20,11 @@ test_content = ''.join(test_content) + '\n'
class LexersTest(unittest.TestCase):
+ def test_import_all(self):
+ # instantiate every lexer, to see if the token type defs are correct
+ for x in pygments.lexers.LEXERS.keys():
+ c = getattr(pygments.lexers, x)()
+
def test_lexer_classes(self):
a = self.assert_
ae = self.assertEquals
diff --git a/tests/test_clexer.py b/tests/test_clexer.py
index ce757890..4c0ca4bf 100644
--- a/tests/test_clexer.py
+++ b/tests/test_clexer.py
@@ -4,7 +4,7 @@
~~~~~~~~~~~~~~~~~
:copyright: 2006 by Armin Ronacher.
- :license: GNU GPL, see LICENSE for more details.
+ :license: GNU LGPL, see LICENSE for more details.
"""
import unittest
diff --git a/tests/test_lexers.py b/tests/test_lexers.py
deleted file mode 100644
index 9fb6f54c..00000000
--- a/tests/test_lexers.py
+++ /dev/null
@@ -1,10 +0,0 @@
-import unittest
-
-import pygments.lexers
-
-class LexerTest(unittest.TestCase):
-
- def testImportAll(self):
- # instantiate every lexer, to see if the token type defs are correct
- for x in pygments.lexers.LEXERS.keys():
- c = getattr(pygments.lexers, x)()