summaryrefslogtreecommitdiff
path: root/tests/test_cmdline.py
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2006-10-31 23:52:18 +0100
committergbrandl <devnull@localhost>2006-10-31 23:52:18 +0100
commit5010ac84688e1308889f17590e74cda43a1fe66c (patch)
tree1c0cd1ea7694b125e894ae71bc56da73d545cc33 /tests/test_cmdline.py
parent9760369a39cb1a04a03b71b1b75266100218c017 (diff)
downloadpygments-5010ac84688e1308889f17590e74cda43a1fe66c.tar.gz
[svn] make check.
Diffstat (limited to 'tests/test_cmdline.py')
-rw-r--r--tests/test_cmdline.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py
index 803182f6..1126e695 100644
--- a/tests/test_cmdline.py
+++ b/tests/test_cmdline.py
@@ -17,7 +17,7 @@ from pygments import cmdline_main, highlight
def run_cmdline(*args):
saved_stdout = sys.stdout
- saved_stderr = sys.stderr
+ saved_stderr = sys.stderr
new_stdout = sys.stdout = StringIO.StringIO()
new_stderr = sys.stderr = StringIO.StringIO()
try:
@@ -45,7 +45,7 @@ class CmdLineTest(unittest.TestCase):
from pygments.lexers import PythonLexer
from pygments.formatters import HtmlFormatter
filename = os.path.join(testdir, testfile)
- code = file(filename).read()
+ code = file(filename).read()
output = highlight(code, PythonLexer(), HtmlFormatter())