diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2018-05-26 08:35:19 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2018-05-26 08:35:19 +0200 |
commit | 20acde44c19422222ea1e00f5b3fa0de2c6e83d1 (patch) | |
tree | 56ec7596aafe06ad2dffa1294a71ff32a1a99501 | |
parent | 62e2b5a9601008983ff04d6653af4375952cd256 (diff) | |
download | pylint-git-20acde44c19422222ea1e00f5b3fa0de2c6e83d1.tar.gz |
Pass six.StringIO, which is String.StringIO on Python 2, instead of using io.StringIO. Found by #2080
-rw-r--r-- | pylint/test/acceptance/test_stdlib.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pylint/test/acceptance/test_stdlib.py b/pylint/test/acceptance/test_stdlib.py index 6b4f6316c..fd50a0e37 100644 --- a/pylint/test/acceptance/test_stdlib.py +++ b/pylint/test/acceptance/test_stdlib.py @@ -7,6 +7,7 @@ import os import sys import pytest +import six import pylint.lint @@ -41,7 +42,7 @@ MODULES_NAMES = [m[1] for m in MODULES_TO_CHECK] MODULES_TO_CHECK, ids=MODULES_NAMES) def test_libmodule(test_module_location, test_module_name): os.chdir(test_module_location) - with _patch_stdout(io.StringIO()): + with _patch_stdout(six.StringIO()): try: pylint.lint.Run([test_module_name, '--enable=all']) except SystemExit as ex: |