Skip to content

Conversation

@freakboy3742
Copy link
Contributor

@freakboy3742 freakboy3742 commented Jan 13, 2026

#143606 added a test skip decorator for tests when an infinite stack size is configured. That test skip included a shortcut for WASI (which doesn't have a resource module), but missing Emscripten (which has the same limitation).

@freakboy3742
Copy link
Contributor Author

!buildbot emscripten

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @freakboy3742 for commit 43b53af 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F143765%2Fmerge

The command will test the builders whose names match following regular expression: emscripten

The builders matched are:

  • WASM Emscripten PR

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

if is_emscripten or is_wasi or os.name == "nt":
return test

import resource
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another option is to remove if is_wasi or os.name == "nt": and replace it with a more a generic:

Suggested change
import resource
try:
import resource
except ImportError:
return test

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about that approach, but I figured it would be better to be explicit about when resource is a required module so that you catch a case where resource fails to compile for some reason.

@freakboy3742 freakboy3742 merged commit 1857a40 into python:main Jan 13, 2026
55 checks passed
@freakboy3742 freakboy3742 deleted the emscripten-fixes branch January 13, 2026 22:03
@miss-islington-app
Copy link

Thanks @freakboy3742 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 13, 2026
…thonGH-143765)

Modifies the test skip for unlimited stack size to add Emscripten to the
exclusion list.
(cherry picked from commit 1857a40)

Co-authored-by: Russell Keith-Magee <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Jan 13, 2026

GH-143819 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Jan 13, 2026
freakboy3742 added a commit that referenced this pull request Jan 13, 2026
…H-143765) (#143819)

Modifies the test skip for unlimited stack size to add Emscripten to the
exclusion list.
(cherry picked from commit 1857a40)

Co-authored-by: Russell Keith-Magee <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants