Update test_array.py from Cpython v3.11.2 by jiwahn · Pull Request #4745 · RustPython/RustPython
@support.cpython_only def test_obsolete_write_lock(self): from _testcapi import getbuffer_with_null_view _testcapi = import_helper.import_module('_testcapi') a = array.array('B', b"") self.assertRaises(BufferError, getbuffer_with_null_view, a) self.assertRaises(BufferError, _testcapi.getbuffer_with_null_view, a)
# TODO: RUSTPYTHON @unittest.expectedFailure