Eric Snow
017f047183
gh-107471: Fix Refleaks in test_import (gh-107569)
...
gh-107184 introduced a refleak in test_import.SubinterpImportTests (specifically test_singlephase_check_with_setting_and_override and test_single_init_extension_compat). We fix it here by making sure _testsinglephase is removed from sys.modules whenever we clear the runtime's internal state for the module.
The underlying problem is strictly contained in the internal function _PyImport_ClearExtension() (AKA _testinternalcapi.clear_extension()), which is only used in tests.
(This also fixes an intermittent segfault introduced in the same place, in test_disallowed_reimport.)
2023-08-02 20:55:09 +00:00
..
2023-06-02 01:31:58 +02:00
2022-10-17 12:01:00 +02:00
2022-10-17 12:01:00 +02:00
2023-07-24 14:02:03 +00:00
2022-11-09 10:50:09 -08:00
2021-03-23 20:47:40 +01:00
2022-10-25 23:34:22 +01:00
2023-07-12 11:30:25 +01:00
2023-07-22 17:04:34 +02:00
2023-02-28 14:16:39 -07:00
2023-05-21 21:25:09 -07:00
2023-07-24 14:02:03 +00:00
2023-07-04 09:41:43 +00:00
2023-07-31 14:18:38 -07:00
2023-07-03 21:28:27 +01:00
2023-07-20 20:37:19 +00:00
2023-08-02 18:44:20 +01:00
2023-07-12 08:57:10 +03:00
2023-07-26 22:31:47 +00:00
2022-06-21 15:45:49 +02:00
2023-07-25 15:28:30 +02:00
2023-05-10 17:44:52 +01:00
2022-07-26 11:16:51 +02:00
2021-09-08 14:43:00 +02:00
2023-02-15 15:32:31 -07:00
2023-03-09 21:09:12 +00:00
2022-04-03 22:58:52 +02:00
2023-07-12 08:57:10 +03:00
2023-07-31 14:18:38 -07:00
2023-07-22 17:04:34 +02:00
2023-05-30 18:36:20 +02:00
2023-07-26 13:32:47 +01:00
2023-06-02 01:33:17 +02:00
2023-06-14 13:46:37 +01:00
2023-04-24 21:48:05 +00:00
2023-07-02 01:39:38 +00:00
2023-07-03 22:35:46 +00:00
2023-07-31 14:18:38 -07:00
2023-07-27 16:36:54 +02:00
2021-02-25 20:24:21 -08:00
2023-01-08 09:13:25 -06:00
2022-06-01 05:50:01 -04:00
2022-11-15 09:45:11 -07:00
2023-07-01 23:44:07 +00:00
2023-07-27 13:56:59 -06:00
2023-08-02 20:55:09 +00:00
2023-07-03 10:48:50 +00:00
2023-06-29 17:20:49 -07:00
2023-07-02 22:44:37 -07:00
2023-07-27 15:27:11 +01:00
2023-07-20 17:46:04 +01:00
2023-07-27 15:47:33 +01:00
2023-07-22 17:04:34 +02:00
2023-07-18 09:42:05 +03:00
2022-10-07 11:49:53 -07:00
2021-10-19 02:04:52 +02:00
2023-07-10 11:40:35 +01:00
2023-07-31 21:16:57 +00:00
2023-06-01 09:14:02 +02:00
2023-06-14 13:46:37 +01:00
2023-07-04 09:41:43 +00:00
2021-03-24 02:23:01 +01:00
2022-01-13 09:46:04 +01:00
2023-07-22 13:49:37 +00:00
2023-07-22 17:04:34 +02:00
2021-10-15 19:45:34 +02:00
2023-07-28 14:39:08 -06:00
2020-08-27 14:45:25 +09:00
2023-07-04 08:59:09 +00:00
2023-05-10 17:44:52 +01:00
2023-07-25 15:28:30 +02:00
2023-07-26 16:34:15 +01:00
2023-07-12 08:57:10 +03:00
2023-07-01 22:27:18 +00:00
2023-07-25 15:28:30 +02:00
2023-06-19 23:47:04 +01:00
2023-07-25 15:28:30 +02:00
2023-07-12 08:57:10 +03:00
2023-07-25 15:28:30 +02:00
2023-07-24 14:02:03 +00:00
2022-12-08 17:50:58 -07:00
2022-12-08 17:50:58 -07:00
2023-06-22 11:26:10 -07:00
2023-05-01 19:36:00 -06:00
2023-07-25 15:28:30 +02:00
2023-06-14 13:46:37 +01:00