Xuehai Pan
c786d34f60
fix: handle null py::handle and add tests for py::scoped_critical_section ( #5706 )
...
* chore: handle null for `py::scoped_critical_section`
* test: add tests for `py::scoped_critical_section`
* test: use assert instead of REQUIRE
* feat: enable faulthandler for pytest
* chore: use `__has_include(<barrier>)`
* fix: fix segmentation fault in test
* fix: test critical_section for no-gil only
* test: run new tests only
* test: ensure non-empty test selection
* fix: fix test critical_section
* fix: change Python 3.14.0b1/2 xfail tests to non-strict
* test: trigger gc manually
* test: mark xfail to `DynamicClass`
* Use `namespace test_scoped_critical_section_ns` (standard approach to guard against name clashes).
* Simplify changes in pybind11/critical_section.h and add test_nullptr_combinations()
* test: disable Python devmode in pytest
* test: add comprehensive comments for the tests
* test: add a summary comment for tests
* refactor: simpler impl
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
---------
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
Co-authored-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com >
Co-authored-by: Henry Schreiner <henryschreineriii@gmail.com >
2025-06-04 11:45:26 -04:00
..
2025-05-23 17:41:45 -04:00
2024-06-22 00:55:00 -04:00
2025-05-30 18:30:25 -04:00
2025-05-30 18:30:25 -04:00
2025-06-03 16:02:19 -04:00
2025-06-03 16:02:44 -04:00
2025-06-04 11:45:26 -04:00
2025-05-31 23:47:20 -04:00
2024-11-18 14:39:59 -08:00
2024-06-18 13:54:38 -07:00
2024-06-18 13:54:38 -07:00
2024-09-17 09:47:20 -07:00
2024-06-18 13:54:38 -07:00
2025-04-09 09:09:15 -07:00
2024-11-10 12:17:35 -08:00
2024-09-13 00:18:29 -04:00
2024-09-13 00:18:29 -04:00
2024-08-22 00:27:50 -04:00
2025-06-02 16:08:40 -04:00
2025-06-02 16:08:40 -04:00
2022-02-10 12:17:07 -08:00
2024-06-18 13:54:38 -07:00
2025-05-16 21:58:43 -04:00
2024-11-07 09:32:09 -08:00
2025-06-03 16:02:44 -04:00
2025-05-22 01:37:57 -04:00
2025-05-15 14:39:23 -04:00
2022-02-10 12:17:07 -08:00
2024-09-03 10:51:21 -04:00
2025-04-10 18:31:28 -04:00
2025-05-31 23:47:20 -04:00
2025-03-18 07:56:34 -07:00
2025-03-18 07:56:34 -07:00
2024-10-07 14:12:04 -07:00
2024-10-25 08:28:15 -07:00
2025-03-28 11:36:02 -04:00
2025-05-19 11:54:31 -04:00
2022-02-10 12:17:07 -08:00
2024-06-22 00:55:00 -04:00
2025-02-16 11:01:41 -08:00
2025-02-16 11:01:41 -08:00
2025-05-25 10:54:05 -04:00
2025-03-05 12:40:53 -08:00
2025-03-05 12:40:53 -08:00
2025-03-05 12:40:53 -08:00
2025-03-05 12:40:53 -08:00
2025-03-05 12:40:53 -08:00
2025-04-30 22:12:13 -07:00
2025-03-05 12:40:53 -08:00
2025-03-05 12:40:53 -08:00
2025-03-05 12:40:53 -08:00
2025-03-05 12:40:53 -08:00
2025-03-05 12:40:53 -08:00
2025-03-05 12:40:53 -08:00
2025-03-05 12:40:53 -08:00
2025-03-05 12:40:53 -08:00
2025-03-05 12:40:53 -08:00
2025-03-05 12:40:53 -08:00
2025-03-05 12:40:53 -08:00
2025-04-30 22:12:13 -07:00
2025-04-30 22:12:13 -07:00
2025-03-05 12:40:53 -08:00
2025-03-05 12:40:53 -08:00
2025-03-05 12:40:53 -08:00
2025-03-05 12:40:53 -08:00
2025-04-30 22:12:13 -07:00
2025-03-05 12:40:53 -08:00
2025-03-05 12:40:53 -08:00
2025-03-05 12:40:53 -08:00
2025-03-05 12:40:53 -08:00
2025-03-05 12:40:53 -08:00
2025-03-05 12:40:53 -08:00
2025-03-05 12:40:53 -08:00
2025-03-05 12:40:53 -08:00
2025-03-05 12:40:53 -08:00
2025-04-08 23:43:49 -04:00
2025-05-16 21:58:43 -04:00
2022-02-14 11:36:22 -08:00
2024-06-22 00:55:00 -04:00
2024-03-26 13:57:05 -04:00
2024-06-22 00:55:00 -04:00
2025-05-25 10:54:05 -04:00
2024-10-25 08:28:15 -07:00
2024-09-13 00:18:29 -04:00
2024-09-13 00:18:29 -04:00
2024-09-13 00:18:29 -04:00
2025-05-22 01:37:57 -04:00
2024-04-02 11:14:08 -04:00
2025-03-18 07:56:34 -07:00
2025-05-19 09:02:11 -04:00
2024-10-07 14:12:04 -07:00
2025-05-19 11:54:31 -04:00
2025-05-19 11:54:31 -04:00
2024-04-02 11:14:08 -04:00
2025-03-18 07:56:34 -07:00
2025-02-17 23:13:05 -08:00
2025-02-17 23:13:05 -08:00
2022-12-20 05:34:00 -08:00
2024-07-29 11:10:03 -07:00
2025-02-17 23:13:05 -08:00
2025-03-24 20:31:59 -07:00
2025-04-10 18:31:28 -04:00
2024-06-22 00:55:00 -04:00
2022-02-10 12:17:07 -08:00
2024-10-07 14:12:04 -07:00
2024-09-17 09:47:20 -07:00
2023-08-07 20:48:20 -07:00
2025-03-20 22:41:33 -07:00
2022-02-14 11:36:22 -08:00
2025-03-18 07:56:34 -07:00
2022-10-30 08:57:23 -07:00
2025-05-28 23:33:53 -04:00
2022-02-14 11:36:22 -08:00
2024-11-18 14:39:59 -08:00
2024-11-11 14:51:01 -08:00
2025-04-13 19:47:19 -07:00
2022-02-10 12:17:07 -08:00
2025-03-23 20:35:14 -07:00
2024-11-11 15:35:28 -08:00
2025-05-27 00:05:19 -04:00
2025-05-25 18:56:26 -04:00
2025-03-28 09:57:39 -07:00
2022-02-10 12:17:07 -08:00
2025-03-23 20:35:14 -07:00
2025-06-02 16:08:40 -04:00
2025-04-15 21:38:15 -07:00
2025-04-15 21:38:15 -07:00
2025-02-17 23:13:05 -08:00
2025-03-20 20:57:51 -07:00
2025-05-25 10:54:05 -04:00
2025-04-03 22:08:56 -04:00
2022-05-26 11:07:40 -04:00
2025-03-18 07:56:34 -07:00
2025-04-10 18:31:28 -04:00
2025-05-31 23:47:20 -04:00
2022-11-28 07:39:38 -08:00
2025-05-16 21:58:43 -04:00
2025-05-13 14:09:05 -04:00
2025-05-27 00:05:19 -04:00
2025-05-13 10:07:33 -04:00
2025-05-13 10:07:33 -04:00
2023-11-08 12:44:04 -08:00
2024-06-22 00:55:00 -04:00
2025-05-31 23:47:20 -04:00
2025-05-31 23:47:20 -04:00
2025-06-04 11:45:26 -04:00
2025-06-04 11:45:26 -04:00
2025-05-25 10:54:05 -04:00
2025-05-19 11:54:31 -04:00
2025-05-25 10:54:05 -04:00
2025-04-10 12:37:50 -07:00
2024-04-02 11:14:08 -04:00
2024-10-08 10:49:35 -07:00
2025-05-08 23:46:01 -07:00
2025-05-31 23:47:20 -04:00
2024-08-22 00:27:50 -04:00
2024-06-22 00:55:00 -04:00
2025-01-16 11:13:21 -08:00
2025-01-16 11:13:21 -08:00
2024-10-07 14:12:04 -07:00
2025-03-18 07:56:34 -07:00
2024-08-09 13:28:12 -07:00
2024-08-09 13:28:12 -07:00
2019-06-11 23:28:58 +02:00
2024-06-22 00:55:00 -04:00
2025-02-19 09:24:02 -08:00
2025-02-19 09:24:02 -08:00
2023-04-25 14:03:24 -07:00
2024-06-22 00:55:00 -04:00
2023-04-27 07:24:48 -07:00
2024-06-22 00:55:00 -04:00
2024-08-22 00:27:50 -04:00
2024-10-07 14:12:04 -07:00
2024-08-28 20:55:50 -07:00
2024-08-28 20:55:50 -07:00
2021-07-04 19:58:35 -04:00
2021-01-31 17:29:09 -05:00