summaryrefslogtreecommitdiff
path: root/testutils.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2014-08-29 12:33:37 -0400
committerBrett Cannon <brett@python.org>2014-08-29 12:33:37 -0400
commitbff72cfd4b2e1dda68fdc4be1abcb3f56d36e1e3 (patch)
tree803bbc486873b277b3c3a864128b6603e6ae6a86 /testutils.py
parent272f69a3630bb9ea05892323f88dd06503e59eaf (diff)
downloadpylint-bff72cfd4b2e1dda68fdc4be1abcb3f56d36e1e3.tar.gz
Don't use cStringIO
Diffstat (limited to 'testutils.py')
-rw-r--r--testutils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/testutils.py b/testutils.py
index 6a437c6..a059fe4 100644
--- a/testutils.py
+++ b/testutils.py
@@ -19,7 +19,6 @@ from __future__ import print_function
import collections
import contextlib
import functools
-import cStringIO
import sys
import re
import unittest
@@ -35,7 +34,9 @@ from pylint.utils import PyLintASTWalker
from pylint.reporters import BaseReporter
from pylint.interfaces import IReporter
from pylint.lint import PyLinter
+
import six
+from six.moves import StringIO
# Utils
@@ -96,7 +97,7 @@ class TestReporter(BaseReporter):
self.reset()
def reset(self):
- self.out = cStringIO.StringIO()
+ self.out = StringIO()
self.messages = []
def add_message(self, msg_id, location, msg):