Skip to content

test_exceptions.ExceptionTests.testMemoryErrorBigSource fails on certain platforms #110800

Closed as not planned
@FFY00

Description

@FFY00

Bug report

Bug description:

Example: https://buildbot.python.org/all/#/builders/1056/builds/3329/steps/10/logs/stdio

======================================================================
FAIL: testMemoryErrorBigSource (test.test_exceptions.ExceptionTests.testMemoryErrorBigSource)
----------------------------------------------------------------------
OverflowError: cannot fit 'int' into an index-sized integer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/opt/buildbot/bcannon-wasm/3.x.bcannon-wasm.emscripten-node-dl/build/Lib/test/test_exceptions.py", line 322, in testMemoryErrorBigSource
    with self.assertRaisesRegex(OverflowError, "column offset overflow"):
AssertionError: "column offset overflow" does not match "cannot fit 'int' into an index-sized integer"
----------------------------------------------------------------------
Ran 95 tests in 1.969s

This seems to be due to the PySequence_Repeat taking a Py_ssize_t, which is platform dependent.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions