8000 Disable test_Buffer · RustPython/RustPython@9481df2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9481df2

Browse files
committed
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.
1 parent 0bd8c25 commit 9481df2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/test_collections.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1977,6 +1977,10 @@ class X(ByteString): pass
19771977
# No metaclass conflict
19781978
class Z(ByteString, Awaitable): pass
19791979

1980+
# TODO: RUSTPYTHON
1981+
# Need to implement __buffer__ and __release_buffer__
1982+
# https://docs.python.org/3.13/reference/datamodel.html#emulating-buffer-types
1983+
@unittest.expectedFailure
19801984
def test_Buffer(self):
19811985
for sample in [bytes, bytearray, memoryview]:
19821986
self.assertIsInstance(sample(b"x"), Buffer)

0 commit comments

Comments
 (0)
0