Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-116303: Skip tests if C recursion limit is unavailable #117368

Merged

Conversation

erlend-aasland
Copy link
Contributor

@erlend-aasland erlend-aasland commented Mar 29, 2024

The test suite fetches the C recursion limit from the _testcapi
extension module. Test extension modules can be disabled using the
--disable-test-modules configure option.

The test suite fetches the C recursion limit from the _testcapi
extension module. Test extension modules can be disabled using the
--disable-test-modules configure option.
@rhettinger rhettinger removed their request for review March 30, 2024 22:02
Copy link
Member

@encukou encukou left a comment

Choose a reason for hiding this comment

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

If --disable-test-modules builds become common, it would be best to put constants like this into a small built-in module, so not as many tests need to be skipped.
(And there might be reasons to expose non-test-related constants as well.)

But this looks fine for today. Thanks!

@encukou encukou merged commit ca62ffd into python:main Apr 8, 2024
33 checks passed
@erlend-aasland erlend-aasland deleted the disable-test-modules/recursion-limit branch April 8, 2024 12:47
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
…onGH-117368)

The test suite fetches the C recursion limit from the _testcapi
extension module. Test extension modules can be disabled using the
--disable-test-modules configure option.
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.

None yet

3 participants