mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-76785: Fix Windows Refleak in test_interpreters (gh-117913)
gh-117662 introduced some refleaks, or, rather, exposed some existing refleaks. The leaks are coming when test.support.os_helper is imported in a "legacy" interpreter. I've updated test.test_interpreters.utils to avoid importing os_helper, which fixes the leaks. I'll address the root cause separately.
This commit is contained in:
parent
757891ee8a
commit
3831144f9c
2 changed files with 7 additions and 6 deletions
|
@ -174,9 +174,6 @@ class GetCurrentTests(TestBase):
|
|||
|
||||
@requires_test_modules
|
||||
def test_created_with_capi(self):
|
||||
last = 0
|
||||
for id, *_ in _interpreters.list_all():
|
||||
last = max(last, id)
|
||||
expected = _testinternalcapi.next_interpreter_id()
|
||||
text = self.run_temp_from_capi(f"""
|
||||
import {interpreters.__name__} as interpreters
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue