From 70a2e1c331ac6d25d85cba2d959a312e7660cabf Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Mon, 25 Aug 2025 13:18:01 +0100 Subject: [PATCH] tests/test_general.py:test_4392(): fix expectations on manylinux. --- tests/test_general.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_general.py b/tests/test_general.py index c00db47de..e12207000 100644 --- a/tests/test_general.py +++ b/tests/test_general.py @@ -1997,12 +1997,12 @@ def test_4392(): assert e3 == 0 else: # We get SEGV's etc with older swig. - if platform.system() == 'Linux': - assert (e2, e3) == (139, 139) - elif platform.system() == 'Darwin': - assert (e2, e3) == (-11, -11) - elif platform.system() == 'Windows': + if platform.system() == 'Windows': assert (e2, e3) == (0xc0000005, 0xc0000005) + else: + # On plain linux we get (139, 139). On manylinux we get (-11, + # -11). On MacOS we get (-11, -11). + assert (e2, e3) == (139, 139) or (e2, e3) == (-11, -11) def test_4639():