Skip to content

Commit da99144

Browse files
committed
Skip ctypes buffer test on managed
1 parent fd8c6fa commit da99144

File tree

1 file changed

+4
-1
lines changed
  • graalpython/com.oracle.graal.python.test/src/tests/cpyext

1 file changed

+4
-1
lines changed

graalpython/com.oracle.graal.python.test/src/tests/cpyext/test_ctypes.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3737
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3838
# SOFTWARE.
39-
4039
import ctypes
4140
import struct
41+
import sys
4242

4343
from tests.cpyext import CPyExtTestCase, CPyExtType
4444

@@ -115,6 +115,9 @@
115115

116116
class TestCDataBuffer(CPyExtTestCase):
117117
def test_buffer(self):
118+
if sys.implementation.name == 'graalpy' and __graalpython__.get_platform_id() == 'managed':
119+
# TODO we don't support converting ctypes arrays to native memory in managed
120+
return
118121
int_format = struct.Struct(">i")
119122
inner_type = ctypes.c_int.__ctype_be__ * 2
120123
outer_type = inner_type * 2

0 commit comments

Comments
 (0)