Ralf W. Grosse-Kunstleve
59ef5307ae
[smart_holder] Add gil_scoped_acquire to shared_ptr_trampoline_self_life_support ctor. (#4196)
* Add `gil_scoped_acquire` to `shared_ptr_trampoline_self_life_support` ctor.
* Add test exercising fix & validation that the fix is needed (i.e. this is BROKEN).
test_class_sh_trampoline_shared_ptr_cpp_arg.py::test_std_make_shared_factory[pass_through_shd_ptr] PASSED [ 87%]
test_class_sh_trampoline_shared_ptr_cpp_arg.py::test_std_make_shared_factory[pass_through_shd_ptr_release_gil] FAILED [100%]
```
================================================================= FAILURES =================================================================
______________________________________ test_std_make_shared_factory[pass_through_shd_ptr_release_gil] ______________________________________
pass_through_func = <built-in method pass_through_shd_ptr_release_gil of PyCapsule object at 0x7f1b209707b0>
@pytest.mark.parametrize(
"pass_through_func", [m.pass_through_shd_ptr, m.pass_through_shd_ptr_release_gil]
)
def test_std_make_shared_factory(pass_through_func):
class PyChild(m.SpBase):
def __init__(self):
super().__init__(0)
obj = PyChild()
while True:
> assert pass_through_func(obj) is obj
E RuntimeError: NEEDED HERE: gil_scoped_acquire gil;
```
* Put back fix.
2022-10-07 12:24:49 -07:00
..
2022-08-21 19:32:35 -07:00
2022-02-11 19:06:16 -05:00
2022-07-21 08:15:53 -07:00
2022-02-11 19:06:16 -05:00
2022-08-21 19:32:35 -07:00
2021-02-23 21:50:42 -08:00
2021-02-23 21:50:42 -08:00
2021-02-23 21:50:42 -08:00
2022-07-21 06:38:21 -07:00
2022-07-07 17:51:44 -07:00
2022-08-29 23:25:01 -04:00
2022-04-18 11:09:45 -04:00
2022-05-31 11:51:13 -07:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-07-12 18:33:42 -07:00
2022-07-12 18:33:42 -07:00
2022-07-12 18:33:42 -07:00
2022-07-12 18:33:42 -07:00
2022-02-10 12:17:07 -08:00
2022-02-10 12:17:07 -08:00
2022-07-07 17:51:44 -07:00
2022-02-14 11:36:22 -08:00
2022-02-11 19:06:16 -05:00
2022-07-06 16:35:12 -04:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-08-07 15:43:25 -07:00
2022-04-15 10:17:34 -07:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-11 19:06:16 -05:00
2022-02-10 12:17:07 -08:00
2022-02-11 19:06:16 -05:00
2022-02-14 19:00:40 -08:00
2022-02-14 19:00:40 -08:00
2022-02-14 19:00:40 -08:00
2022-02-14 19:00:40 -08:00
2022-02-14 19:00:40 -08:00
2022-02-14 19:00:40 -08:00
2022-02-14 19:00:40 -08:00
2022-02-14 19:00:40 -08:00
2022-02-14 19:00:40 -08:00
2022-02-14 19:00:40 -08:00
2022-02-14 19:00:40 -08:00
2022-05-17 16:35:43 -07:00
2022-05-17 16:35:43 -07:00
2022-02-14 19:00:40 -08:00
2022-02-14 19:00:40 -08:00
2022-02-14 19:00:40 -08:00
2022-02-14 19:00:40 -08:00
2022-02-14 19:00:40 -08:00
2022-02-14 19:00:40 -08:00
2022-02-14 19:00:40 -08:00
2022-02-14 19:00:40 -08:00
2022-10-07 12:24:49 -07:00
2022-10-07 12:24:49 -07:00
2021-07-02 16:51:24 -07:00
2022-02-14 19:00:40 -08:00
2022-02-14 19:00:40 -08:00
2022-02-14 19:00:40 -08:00
2022-02-14 19:00:40 -08:00
2022-02-14 19:00:40 -08:00
2022-03-18 11:08:20 -07:00
2022-03-18 11:08:20 -07:00
2022-02-14 14:36:08 -08:00
2022-02-10 18:28:08 -08:00
2021-04-19 10:54:37 -07:00
2022-02-14 19:00:40 -08:00
2022-02-14 11:36:22 -08:00
2022-02-10 18:28:08 -08:00
2022-06-06 12:15:45 -04:00
2022-02-10 18:28:08 -08:00
2022-05-16 13:51:01 -07:00
2022-05-16 13:51:01 -07:00
2022-08-01 11:31:31 -07:00
2022-02-25 13:25:23 -08:00
2021-09-24 12:08:22 -07:00
2022-02-10 18:28:08 -08:00
2022-07-21 06:38:21 -07:00
2022-07-21 06:38:21 -07:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-06-29 11:37:16 -07:00
2022-08-24 07:34:31 -07:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-07-12 18:33:42 -07:00
2022-07-21 06:38:00 -07:00
2022-02-10 12:17:07 -08:00
2022-08-03 11:38:07 -04:00
2022-02-14 14:36:08 -08:00
2022-02-14 14:36:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-02-14 11:36:22 -08:00
2022-02-10 18:28:08 -08:00
2022-07-21 06:40:34 -07:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-05-02 12:41:48 -07:00
2022-07-09 21:47:49 -07:00
2022-05-28 16:40:57 -07:00
2022-05-28 16:40:57 -07:00
2022-02-14 14:36:08 -08:00
2022-02-10 18:28:08 -08:00
2022-05-26 11:07:40 -04:00
2022-02-11 19:06:16 -05:00
2022-05-26 11:07:40 -04:00
2022-04-14 10:53:16 -04:00
2022-05-26 11:07:40 -04:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-11 19:06:16 -05:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-05-02 12:39:36 -07:00
2022-05-02 12:39:36 -07:00
2022-08-11 16:14:17 -04:00
2022-08-11 16:14:17 -04:00
2022-02-11 10:42:48 -05:00
2022-02-11 19:06:16 -05:00
2022-08-07 15:43:25 -07:00
2022-02-14 14:36:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-08-07 15:43:25 -07:00
2022-05-05 16:12:58 -07:00
2022-08-01 11:31:31 -07:00
2022-02-10 18:28:08 -08:00
2022-02-10 12:17:07 -08:00
2022-02-10 18:28:08 -08:00
2022-07-21 06:38:21 -07:00
2022-07-21 06:38:21 -07:00
2022-07-21 06:38:21 -07:00
2022-07-21 06:38:21 -07:00
2019-06-11 23:28:58 +02:00
2022-02-10 18:28:08 -08:00
2022-07-21 06:53:22 -07:00
2022-02-11 19:06:16 -05:00
2021-07-04 19:58:35 -04:00
2021-01-31 17:29:09 -05:00