We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00aa9c3 commit 4e9a8e6Copy full SHA for 4e9a8e6
python/tests/test_c_buffer.py
@@ -49,10 +49,11 @@ def test_c_buffer_constructor():
49
def test_c_buffer_unsupported_format():
50
empty = CBuffer.empty()
51
52
- with pytest.raises(ValueError, match="Can't convert format '>i' to Arrow type"):
53
- if sys.byteorder == "little":
+ if sys.byteorder == "little":
+ with pytest.raises(ValueError, match="Can't convert format '>i' to Arrow type"):
54
empty._set_format(">i")
55
- else:
+ else:
56
+ with pytest.raises(ValueError, match="Can't convert format '<i' to Arrow type"):
57
empty._set_format("<i")
58
59
with pytest.raises(ValueError, match=r"Unsupported Arrow type_id"):
0 commit comments