Issue #9858: Add missing method stubs to _io.RawIOBase. Patch by Laura Rupprecht.

This commit is contained in:
Antoine Pitrou 2015-05-20 21:50:59 +02:00
parent 60335855f0
commit 45d6156154
4 changed files with 22 additions and 2 deletions

View file

@ -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):