Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
5fd871d7
Commit
5fd871d7
authored
Mar 05, 2009
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename
parent
9363a65b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Lib/test/test_io.py
Lib/test/test_io.py
+3
-3
No files found.
Lib/test/test_io.py
View file @
5fd871d7
...
...
@@ -1648,7 +1648,7 @@ class TextIOWrapperTest(unittest.TestCase):
# Make test faster by doing smaller seeks
CHUNK_SIZE
=
128
def
test
SeekAndTellWithD
ata
(
data
,
min_pos
=
0
):
def
test
_seek_and_tell_with_d
ata
(
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
:
test
SeekAndTellWithD
ata
(
input
)
test
_seek_and_tell_with_d
ata
(
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
test
SeekAndTellWithD
ata
(
prefix
+
input
,
min_pos
)
test
_seek_and_tell_with_d
ata
(
prefix
+
input
,
min_pos
)
# Ensure our test decoder won't interfere with subsequent tests.
finally
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment