summaryrefslogtreecommitdiff
path: root/tests/test_cmdline.py
diff options
context:
space:
mode:
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())