summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2015-10-14 18:33:43 -0700
committerTim Hatch <tim@timhatch.com>2015-10-14 18:33:43 -0700
commit56e49bdf1fc057ac87d55eb51a8dc4ceaca83ca4 (patch)
tree84fbd9b3a294e1c56cc720eb0b486d5f081a8088
parent6d0b5ca281d57ec6b7bf8e3bc94c6ff78e82cb35 (diff)
downloadpygments-56e49bdf1fc057ac87d55eb51a8dc4ceaca83ca4.tar.gz
Fixup naming of IRC test; add to docs
-rw-r--r--AUTHORS1
-rw-r--r--CHANGES6
-rw-r--r--tests/test_irc_formatter.py10
3 files changed, 10 insertions, 7 deletions
diff --git a/AUTHORS b/AUTHORS
index 471c91e2..5101af12 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -23,6 +23,7 @@ Other contributors, listed alphabetically, are:
* Michael Bayer -- Myghty lexers
* Thomas Beale -- Archetype lexers
* John Benediktsson -- Factor lexer
+* Trevor Bergeron -- mIRC formatter
* Vincent Bernat -- LessCSS lexer
* Christopher Bertels -- Fancy lexer
* Jarrett Billingsley -- MiniD lexer
diff --git a/CHANGES b/CHANGES
index 0b48c998..837a2ab6 100644
--- a/CHANGES
+++ b/CHANGES
@@ -39,6 +39,12 @@ Version 2.1
* Lovelace (PR#456)
* Algol and Algol-nu (#1090)
+
+- Added formatters:
+
+ * IRC (PR#458)
+
+
- Updated autopygmentize script (PR#445)
- Fixed style inheritance for non-standard token types in HTML output.
diff --git a/tests/test_irc_formatter.py b/tests/test_irc_formatter.py
index 649e430d..16a8fd30 100644
--- a/tests/test_irc_formatter.py
+++ b/tests/test_irc_formatter.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""
- Pygments HTML formatter tests
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Pygments IRC formatter tests
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: Copyright 2006-2015 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
@@ -9,12 +9,8 @@
from __future__ import print_function
-import io
-import os
import re
import unittest
-import tempfile
-from os.path import join, dirname, isfile
from pygments.util import StringIO
from pygments.lexers import PythonLexer
@@ -24,7 +20,7 @@ import support
tokensource = list(PythonLexer().get_tokens("lambda x: 123"))
-class HtmlFormatterTest(unittest.TestCase):
+class IRCFormatterTest(unittest.TestCase):
def test_correct_output(self):
hfmt = IRCFormatter()
houtfile = StringIO()