Skip to content

Conversation

@qykth-git
Copy link

@qykth-git qykth-git commented Dec 10, 2025

Skip write_table test in 32 bit build.

OverflowError: cannot fit 'int' into an index-sized integer

@qykth-git qykth-git changed the title Drop failed test on 32bit platform Skip failed test on 32bit platform Dec 10, 2025
======================================================================
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
----------------------------------------------------------------------
@Rogdham
Copy link
Owner

Rogdham commented Dec 11, 2025

Hello @qykth-git and thank you for the PR!

This issue is completely my bad, I removed the skipIf during a refactor and forgot to put it back.

Instead of skipping the test, I tried to patch the crashing code in #62. Could you give it a try?

@qykth-git
Copy link
Author

@Rogdham
Thank you. #62 works on my 32bit i386 machine.
You can examine my result from here.
https://salsa.debian.org/python-team/packages/python-pyzstd/-/jobs/8736834#L1263

@Rogdham
Copy link
Owner

Rogdham commented Dec 13, 2025

Thank you for checking it out!

@Rogdham Rogdham closed this in #62 Dec 13, 2025
@Rogdham
Copy link
Owner

Rogdham commented Dec 13, 2025

Version 0.19.1 ships the fix.

@qykth-git qykth-git deleted the 32bit-build branch December 14, 2025 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants