diff options
author | Anthony Sottile <asottile@umich.edu> | 2022-11-21 14:20:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-21 14:20:04 -0500 |
commit | 7498309c2d59ff2ac69e6fae264f507a4ee2feb3 (patch) | |
tree | e0d4dacf3d96f59f783c56b08d8319573f618599 /testsuite/test_shell.py | |
parent | c5308a75adb2c98a00228083ebe7cd87445a8c36 (diff) | |
parent | 956ab1fa7aeffdca4eb1c7b625f8921883e1bc0d (diff) | |
download | pep8-7498309c2d59ff2ac69e6fae264f507a4ee2feb3.tar.gz |
Merge pull request #1124 from PyCQA/py2-cruft
remove some leftover python 2 compat
Diffstat (limited to 'testsuite/test_shell.py')
-rw-r--r-- | testsuite/test_shell.py | 7 |
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): |