Commit f6853a6
committed
Register py_event_loop module in OWN_GIL subinterpreters
Fix reactor tests failing in OWN_GIL mode by registering the
py_event_loop module during OWN_GIL thread initialization.
The reactor functions call get_module_state() to access the reactor
cache, which requires the py_event_loop module to exist. Without this,
get_module_state() returns NULL and reactor operations fail.
Enable the previously skipped py_reactor_context tests now that
OWN_GIL reactor dispatch works correctly.1 parent 0851392 commit f6853a6
2 files changed
Lines changed: 8 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2824 | 2824 | | |
2825 | 2825 | | |
2826 | 2826 | | |
| 2827 | + | |
| 2828 | + | |
| 2829 | + | |
| 2830 | + | |
| 2831 | + | |
| 2832 | + | |
| 2833 | + | |
| 2834 | + | |
2827 | 2835 | | |
2828 | 2836 | | |
2829 | 2837 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
947 | 947 | | |
948 | 948 | | |
949 | 949 | | |
950 | | - | |
951 | | - | |
952 | | - | |
953 | 950 | | |
954 | 951 | | |
955 | 952 | | |
| |||
1011 | 1008 | | |
1012 | 1009 | | |
1013 | 1010 | | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
1017 | 1011 | | |
1018 | 1012 | | |
1019 | 1013 | | |
| |||
1079 | 1073 | | |
1080 | 1074 | | |
1081 | 1075 | | |
1082 | | - | |
1083 | | - | |
1084 | | - | |
1085 | 1076 | | |
1086 | 1077 | | |
1087 | 1078 | | |
| |||
0 commit comments