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
45d61561
Commit
45d61561
authored
May 20, 2015
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #9858: Add missing method stubs to _io.RawIOBase. Patch by Laura Rupprecht.
parent
60335855
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
2 deletions
+22
-2
Lib/test/test_io.py
Lib/test/test_io.py
+2
-2
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS
Misc/NEWS
+3
-0
Modules/_io/iobase.c
Modules/_io/iobase.c
+16
-0
No files found.
Lib/test/test_io.py
View file @
45d61561
...
...
@@ -722,10 +722,10 @@ class PyIOTest(IOTest):
@
support
.
cpython_only
class
APIMismatchTest
(
unittest
.
TestCase
):
@
unittest
.
expectedFailure
# Test to be fixed by issue9858.
def
test_RawIOBase_io_in_pyio_match
(
self
):
"""Test that pyio RawIOBase class has all c RawIOBase methods"""
mismatch
=
support
.
detect_api_mismatch
(
pyio
.
RawIOBase
,
io
.
RawIOBase
)
mismatch
=
support
.
detect_api_mismatch
(
pyio
.
RawIOBase
,
io
.
RawIOBase
,
ignore
=
(
'__weakref__'
,))
self
.
assertEqual
(
mismatch
,
set
(),
msg
=
'Python RawIOBase does not have all C RawIOBase methods'
)
def
test_RawIOBase_pyio_in_io_match
(
self
):
...
...
Misc/ACKS
View file @
45d61561
...
...
@@ -1212,6 +1212,7 @@ Demur Rumed
Audun S. Runde
Eran Rundstein
Rauli Ruohonen
Laura Rupprecht
Jeff Rush
Sam Rushing
Mark Russell
...
...
Misc/NEWS
View file @
45d61561
...
...
@@ -52,6 +52,9 @@ Core and Builtins
Library
-------
- Issue #9858: Add missing method stubs to _io.RawIOBase. Patch by Laura
Rupprecht.
- Issue #22955: attrgetter, itemgetter and methodcaller objects in the operator
module now support pickling. Added readable and evaluable repr for these
objects. Based on patch by Josh Rosenberg.
...
...
Modules/_io/iobase.c
View file @
45d61561
...
...
@@ -952,9 +952,25 @@ _io__RawIOBase_readall_impl(PyObject *self)
return
result
;
}
static
PyObject
*
rawiobase_readinto
(
PyObject
*
self
,
PyObject
*
args
)
{
PyErr_SetNone
(
PyExc_NotImplementedError
);
return
NULL
;
}
static
PyObject
*
rawiobase_write
(
PyObject
*
self
,
PyObject
*
args
)
{
PyErr_SetNone
(
PyExc_NotImplementedError
);
return
NULL
;
}
static
PyMethodDef
rawiobase_methods
[]
=
{
_IO__RAWIOBASE_READ_METHODDEF
_IO__RAWIOBASE_READALL_METHODDEF
{
"readinto"
,
rawiobase_readinto
,
METH_VARARGS
},
{
"write"
,
rawiobase_write
,
METH_VARARGS
},
{
NULL
,
NULL
}
};
...
...
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