Skip to content

Commit 4e9a8e6

Browse files
committed
fix python test on bigendian
1 parent 00aa9c3 commit 4e9a8e6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

python/tests/test_c_buffer.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,11 @@ def test_c_buffer_constructor():
4949
def test_c_buffer_unsupported_format():
5050
empty = CBuffer.empty()
5151

52-
with pytest.raises(ValueError, match="Can't convert format '>i' to Arrow type"):
53-
if sys.byteorder == "little":
52+
if sys.byteorder == "little":
53+
with pytest.raises(ValueError, match="Can't convert format '>i' to Arrow type"):
5454
empty._set_format(">i")
55-
else:
55+
else:
56+
with pytest.raises(ValueError, match="Can't convert format '<i' to Arrow type"):
5657
empty._set_format("<i")
5758

5859
with pytest.raises(ValueError, match=r"Unsupported Arrow type_id"):

0 commit comments

Comments
 (0)