diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-03-05 00:49:53 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-03-05 00:49:53 (GMT) |
commit | 5fd871d72476bfa8cc00bd9a437fd552202de37e (patch) | |
tree | 75e310eac86e0593d70b601208a2606c520fa2ec /Lib/test/test_io.py | |
parent | 9363a65b2ceb1b9cb9b14a1711d7d2310673a0a0 (diff) | |
download | cpython-5fd871d72476bfa8cc00bd9a437fd552202de37e.zip cpython-5fd871d72476bfa8cc00bd9a437fd552202de37e.tar.gz cpython-5fd871d72476bfa8cc00bd9a437fd552202de37e.tar.bz2 |
rename
Diffstat (limited to 'Lib/test/test_io.py')
-rw-r--r-- | Lib/test/test_io.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index 1c7d1f1..3189f9c 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -1648,7 +1648,7 @@ class TextIOWrapperTest(unittest.TestCase): # Make test faster by doing smaller seeks CHUNK_SIZE = 128 - def testSeekAndTellWithData(data, min_pos=0): + def test_seek_and_tell_with_data(data, min_pos=0): """Tell/seek to various points within a data stream and ensure that the decoded data returned by read() is consistent.""" f = self.open(support.TESTFN, 'wb') @@ -1676,7 +1676,7 @@ class TextIOWrapperTest(unittest.TestCase): try: # Try each test case. for input, _, _ in StatefulIncrementalDecoderTest.test_cases: - testSeekAndTellWithData(input) + test_seek_and_tell_with_data(input) # Position each test case so that it crosses a chunk boundary. for input, _, _ in StatefulIncrementalDecoderTest.test_cases: @@ -1684,7 +1684,7 @@ class TextIOWrapperTest(unittest.TestCase): prefix = b'.'*offset # Don't bother seeking into the prefix (takes too long). min_pos = offset*2 - testSeekAndTellWithData(prefix + input, min_pos) + test_seek_and_tell_with_data(prefix + input, min_pos) # Ensure our test decoder won't interfere with subsequent tests. finally: |