summaryrefslogtreecommitdiff
path: root/test/unittest_reporting.py
diff options
context:
space:
mode:
authorTorsten Marek <shlomme@gmail.com>2014-11-09 10:33:29 +0100
committerTorsten Marek <shlomme@gmail.com>2014-11-09 10:33:29 +0100
commit0ed61a71b1756e204cd57d3711c7f4d0b90ebef2 (patch)
treecc704a4444b0686293e860ce785b8f8f9008efeb /test/unittest_reporting.py
parent052955e6b48af4ac80448fbb87ca2e6702f9a8e4 (diff)
downloadpylint-git-0ed61a71b1756e204cd57d3711c7f4d0b90ebef2.tar.gz
Make most tests run unmodified under Python 3.4.
Diffstat (limited to 'test/unittest_reporting.py')
-rw-r--r--test/unittest_reporting.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unittest_reporting.py b/test/unittest_reporting.py
index 88fb288de..ef1de0c64 100644
--- a/test/unittest_reporting.py
+++ b/test/unittest_reporting.py
@@ -11,11 +11,11 @@
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-import cStringIO
import os
from os.path import join, dirname, abspath
import unittest
+import six
from pylint.lint import PyLinter
from pylint import checkers
@@ -35,7 +35,7 @@ class PyLinterTC(unittest.TestCase):
os.environ.pop('PYLINTRC', None)
def test_template_option(self):
- output = cStringIO.StringIO()
+ output = six.StringIO()
self.linter.reporter.set_output(output)
self.linter.set_option('msg-template', '{msg_id}:{line:03d}')
self.linter.open()
@@ -48,7 +48,7 @@ class PyLinterTC(unittest.TestCase):
'C0301:002\n')
def test_parseable_output_regression(self):
- output = cStringIO.StringIO()
+ output = six.StringIO()
linter = PyLinter(reporter=ParseableTextReporter())
checkers.initialize(linter)
linter.config.persistent = 0