From aa9a0e305f990087aa9ee52fd3d153c5bccc00da Mon Sep 17 00:00:00 2001 From: YOKOTA Hiroshi Date: Wed, 10 Dec 2025 17:47:31 +0900 Subject: [PATCH] Skip failed test on 32bit platform ====================================================================== ERROR: test_write_table (tests.test_seekable.SeekTableCase.test_write_table) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../tests/test_seekable.py", line 555, in test_write_table t.write_seek_table(BytesIO()) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ File ".../pyzstd/_seekable_zstdfile.py", line 308, in write_seek_table for i in range(0, len(self._frames), 2): ~~~^^^^^^^^^^^^^^ OverflowError: cannot fit 'int' into an index-sized integer ---------------------------------------------------------------------- --- tests/test_seekable.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_seekable.py b/tests/test_seekable.py index 3dd56b1..20e0890 100644 --- a/tests/test_seekable.py +++ b/tests/test_seekable.py @@ -12,6 +12,7 @@ from io import BytesIO from math import ceil +from sysconfig import get_config_var from unittest.mock import patch from pyzstd import ( @@ -539,6 +540,7 @@ def test_load_bad2(self): 'cumulated compressed size'): t.load_seek_table(b, seek_to_0=True) + @unittest.skipIf(get_config_var('SIZEOF_SIZE_T') == 4, 'skip in 32-bit build') def test_write_table(self): class MockError(Exception): pass