diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-29 11:35:43 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-29 11:35:43 +0300 |
commit | 50254c57cd7a562441b7ff385d59c0255301f3ff (patch) | |
tree | d9b63adc089c3e60a04668bcb22af1c706a68971 /Lib/test/test_logging.py | |
parent | 15e6590774956a5bbb3a901bf5328869eb44ad49 (diff) | |
download | cpython-git-50254c57cd7a562441b7ff385d59c0255301f3ff.tar.gz |
Issue #18743: Fix references to non-existant "StringIO" module
in docstrings and comments.
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r-- | Lib/test/test_logging.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index c9a051ae9f..ae4ca18444 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -156,12 +156,7 @@ class BaseTest(unittest.TestCase): the expected_values list of tuples.""" stream = stream or self.stream pat = re.compile(self.expected_log_pat) - try: - stream.reset() - actual_lines = stream.readlines() - except AttributeError: - # StringIO.StringIO lacks a reset() method. - actual_lines = stream.getvalue().splitlines() + actual_lines = stream.getvalue().splitlines() self.assertEqual(len(actual_lines), len(expected_values)) for actual, expected in zip(actual_lines, expected_values): match = pat.search(actual) |