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
09a8e163
Commit
09a8e163
authored
Jan 10, 2013
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Plain Diff
#16898: merge with 3.3.
parents
e1b0d3e1
b21af554
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
Lib/test/test_bufio.py
Lib/test/test_bufio.py
+4
-7
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_bufio.py
View file @
09a8e163
...
@@ -11,7 +11,7 @@ import _pyio as pyio # Python implementation.
...
@@ -11,7 +11,7 @@ import _pyio as pyio # Python implementation.
lengths
=
list
(
range
(
1
,
257
))
+
[
512
,
1000
,
1024
,
2048
,
4096
,
8192
,
10000
,
lengths
=
list
(
range
(
1
,
257
))
+
[
512
,
1000
,
1024
,
2048
,
4096
,
8192
,
10000
,
16384
,
32768
,
65536
,
1000000
]
16384
,
32768
,
65536
,
1000000
]
class
BufferSizeTest
(
unittest
.
TestCase
)
:
class
BufferSizeTest
:
def
try_one
(
self
,
s
):
def
try_one
(
self
,
s
):
# Write s + "\n" + s to file, then open it and ensure that successive
# Write s + "\n" + s to file, then open it and ensure that successive
# .readline()s deliver what we wrote.
# .readline()s deliver what we wrote.
...
@@ -62,15 +62,12 @@ class BufferSizeTest(unittest.TestCase):
...
@@ -62,15 +62,12 @@ class BufferSizeTest(unittest.TestCase):
self
.
drive_one
(
bytes
(
1000
))
self
.
drive_one
(
bytes
(
1000
))
class
CBufferSizeTest
(
BufferSizeTest
):
class
CBufferSizeTest
(
BufferSizeTest
,
unittest
.
TestCase
):
open
=
io
.
open
open
=
io
.
open
class
PyBufferSizeTest
(
BufferSizeTest
):
class
PyBufferSizeTest
(
BufferSizeTest
,
unittest
.
TestCase
):
open
=
staticmethod
(
pyio
.
open
)
open
=
staticmethod
(
pyio
.
open
)
def
test_main
():
support
.
run_unittest
(
CBufferSizeTest
,
PyBufferSizeTest
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
test_
main
()
unittest
.
main
()
Misc/NEWS
View file @
09a8e163
...
@@ -614,6 +614,9 @@ Tests
...
@@ -614,6 +614,9 @@ Tests
- Issue #16836: Enable IPv6 support even if IPv6 is disabled on the build host.
- Issue #16836: Enable IPv6 support even if IPv6 is disabled on the build host.
- Issue #16898: test_bufio now works with unittest test discovery.
Patch by Zachary Ware.
- Issue #16888: test_array now works with unittest test discovery.
- Issue #16888: test_array now works with unittest test discovery.
Patch by Zachary Ware.
Patch by Zachary Ware.
...
...
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