summaryrefslogtreecommitdiff
path: root/testsuite/test_shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/test_shell.py')
-rw-r--r--testsuite/test_shell.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/testsuite/test_shell.py b/testsuite/test_shell.py
index 059d882..a2fa35e 100644
--- a/testsuite/test_shell.py
+++ b/testsuite/test_shell.py
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
+import configparser
import os.path
import sys
import unittest
@@ -15,7 +16,7 @@ class ShellTestCase(unittest.TestCase):
self._saved_stdout = sys.stdout
self._saved_stderr = sys.stderr
self._saved_pconfig = pycodestyle.PROJECT_CONFIG
- self._saved_cpread = pycodestyle.RawConfigParser._read
+ self._saved_cpread = configparser.RawConfigParser._read
self._saved_stdin_get_value = pycodestyle.stdin_get_value
self._config_filenames = []
self.stdin = ''
@@ -25,7 +26,7 @@ class ShellTestCase(unittest.TestCase):
def fake_config_parser_read(cp, fp, filename):
self._config_filenames.append(filename)
- pycodestyle.RawConfigParser._read = fake_config_parser_read
+ configparser.RawConfigParser._read = fake_config_parser_read
pycodestyle.stdin_get_value = self.stdin_get_value
def tearDown(self):
@@ -33,7 +34,7 @@ class ShellTestCase(unittest.TestCase):
sys.stdout = self._saved_stdout
sys.stderr = self._saved_stderr
pycodestyle.PROJECT_CONFIG = self._saved_pconfig
- pycodestyle.RawConfigParser._read = self._saved_cpread
+ configparser.RawConfigParser._read = self._saved_cpread
pycodestyle.stdin_get_value = self._saved_stdin_get_value
def stdin_get_value(self):