forked from Rust-related/RustPython
Disable test_Buffer
This test will not work until the `__buffer__` and `__release_buffer__` methods are implemented on the appropriate builtin types, which is outside the current scope.
This commit is contained in:
4
Lib/test/test_collections.py
vendored
4
Lib/test/test_collections.py
vendored
@@ -1977,6 +1977,10 @@ class TestCollectionABCs(ABCTestCase):
|
||||
# No metaclass conflict
|
||||
class Z(ByteString, Awaitable): pass
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
# Need to implement __buffer__ and __release_buffer__
|
||||
# https://docs.python.org/3.13/reference/datamodel.html#emulating-buffer-types
|
||||
@unittest.expectedFailure
|
||||
def test_Buffer(self):
|
||||
for sample in [bytes, bytearray, memoryview]:
|
||||
self.assertIsInstance(sample(b"x"), Buffer)
|
||||
|
||||
Reference in New Issue
Block a user