summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2006-12-16 09:14:23 +0100
committergbrandl <devnull@localhost>2006-12-16 09:14:23 +0100
commit05243220a979698ac7951fe7d39bede3bc99b44b (patch)
tree32c4909912b9a46a9a28ca4df8dcf0d09bcaa9fe
parent0ef0ea74d32fd433fd4c19225f73116c80dfb56e (diff)
downloadpygments-05243220a979698ac7951fe7d39bede3bc99b44b.tar.gz
[svn] Make the test suite pass.
-rw-r--r--pygments/formatters/rtf.py1
-rw-r--r--tests/test_basic_api.py6
2 files changed, 4 insertions, 3 deletions
diff --git a/pygments/formatters/rtf.py b/pygments/formatters/rtf.py
index b7030857..9d97fd41 100644
--- a/pygments/formatters/rtf.py
+++ b/pygments/formatters/rtf.py
@@ -19,6 +19,7 @@ __all__ = ['RtfFormatter']
class RtfFormatter(Formatter):
+ """Output RTF (Rich Text Format)."""
def __init__(self, **options):
"""
diff --git a/tests/test_basic_api.py b/tests/test_basic_api.py
index b256310c..34e8d542 100644
--- a/tests/test_basic_api.py
+++ b/tests/test_basic_api.py
@@ -74,9 +74,9 @@ class FormattersTest(unittest.TestCase):
# test that every formatter class has the correct public API
for formatter, info in formatters.FORMATTERS.iteritems():
a(len(info) == 4)
- a(info[0]) # name
- a(info[1]) # aliases
- a(info[3]) # doc
+ a(info[0], "missing formatter name") # name
+ a(info[1], "missing formatter aliases") # aliases
+ a(info[3], "missing formatter docstring") # doc
inst = formatter(opt1="val1")
inst.get_style_defs()