Skip to content

gh-149879: Fix test_c_stack_unwind on Cygwin#150084

Open
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:test_c_stack_unwind
Open

gh-149879: Fix test_c_stack_unwind on Cygwin#150084
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:test_c_stack_unwind

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented May 19, 2026

On Cygwin, the Python library is called "cygpython3.16.dll".

On Cygwin, the Python library is called "cygpython3.16.dll".
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label May 19, 2026
@vstinner
Copy link
Copy Markdown
Member Author

Sadly, this change is not enough to fix all test_c_stack_unwind tests. A test still fails on Cygwin:

======================================================================
FAIL: test_manual_unwind_finds_expected_frames (test.test_c_stack_unwind.ManualStackUnwindTests.test_manual_unwind_finds_expected_frames) (env={'PYTHON_JIT': '0'})
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vstinner/cpython/Lib/test/test_c_stack_unwind.py", line 285, in test_manual_unwind_finds_expected_frames
    self.assertGreaterEqual(
    ~~~~~~~~~~~~~~~~~~~~~~~^
        python_frames,
        ^^^^^^^^^^^^^^
        STACK_DEPTH,
        ^^^^^^^^^^^^
        f"expected to find Python frames on {self.machine} with env {env}",
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
AssertionError: 4 not greater than or equal to 10 : expected to find Python frames on x86_64 with env {'PYTHON_JIT': '0'}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant