summaryrefslogtreecommitdiff
path: root/tests/test_basic_api.py
diff options
context:
space:
mode:
authorThomas Aglassinger <roskakori@users.sourceforge.net>2013-06-02 14:17:35 +0000
committerThomas Aglassinger <roskakori@users.sourceforge.net>2013-06-02 14:17:35 +0000
commit406a7c5ef7266419b4858e94cfa59f2e9f612de1 (patch)
tree476f6c36c3a7496a138da1abf0ce8daa4cabe444 /tests/test_basic_api.py
parentf73c52a87b995806b4462a425a9f589031c57e9b (diff)
downloadpygments-406a7c5ef7266419b4858e94cfa59f2e9f612de1.tar.gz
Changed error message to use lexer class instead of lexer name.
Diffstat (limited to 'tests/test_basic_api.py')
-rw-r--r--tests/test_basic_api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_basic_api.py b/tests/test_basic_api.py
index 9ec6e928..19e1988b 100644
--- a/tests/test_basic_api.py
+++ b/tests/test_basic_api.py
@@ -63,7 +63,7 @@ def test_lexer_classes():
try:
tokens = list(inst.get_tokens(test_content))
except KeyboardInterrupt:
- raise KeyboardInterrupt('interrupted %s.get_tokens(): test_content=%r' % (cls.name, test_content))
+ raise KeyboardInterrupt('interrupted %s.get_tokens(): test_content=%r' % (cls.__name__, test_content))
txt = ""
for token in tokens:
assert isinstance(token, tuple)