-
Notifications
You must be signed in to change notification settings - Fork 2.2k
fix: handle null py::handle and add tests for py::scoped_critical_section
#5706
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
Merged
henryiii
merged 19 commits into
pybind:master
from
XuehaiPan:handle-null-for-scoped_critical_section
Jun 4, 2025
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
3d20d9d
chore: handle null for `py::scoped_critical_section`
XuehaiPan 7f0b6ff
test: add tests for `py::scoped_critical_section`
XuehaiPan f7006c4
test: use assert instead of REQUIRE
XuehaiPan 543ff87
feat: enable faulthandler for pytest
XuehaiPan 43e7294
chore: use `__has_include(<barrier>)`
XuehaiPan 3da3d28
fix: fix segmentation fault in test
XuehaiPan 5051829
fix: test critical_section for no-gil only
XuehaiPan adbc2b2
test: run new tests only
XuehaiPan 11e037b
test: ensure non-empty test selection
XuehaiPan e2e11fd
fix: fix test critical_section
XuehaiPan 39d0aa4
fix: change Python 3.14.0b1/2 xfail tests to non-strict
XuehaiPan 8b48a0c
test: trigger gc manually
XuehaiPan 009756f
test: mark xfail to `DynamicClass`
XuehaiPan 58f155c
Use `namespace test_scoped_critical_section_ns` (standard approach to…
rwgk 2ce1f8a
Simplify changes in pybind11/critical_section.h and add test_nullptr_…
rwgk ad4203f
test: disable Python devmode in pytest
XuehaiPan 883ac69
test: add comprehensive comments for the tests
XuehaiPan 1b76b0b
test: add a summary comment for tests
XuehaiPan 4b24109
refactor: simpler impl
henryiii File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.