From 9481df23e1219f7df851770fcddb1a1f08f85f38 Mon Sep 17 00:00:00 2001 From: Daniel Chiquito Date: Sat, 24 Feb 2024 11:02:41 -0500 Subject: [PATCH] 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. --- Lib/test/test_collections.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lib/test/test_collections.py b/Lib/test/test_collections.py index d70490f153..ecd574ab83 100644 --- a/Lib/test/test_collections.py +++ b/Lib/test/test_collections.py @@ -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)