allow _ProactorBasePipeTransport.__del__ failures in tests (#15908)

This commit is contained in:
Kyle Altendorf 2023-08-03 01:01:59 -07:00 committed by GitHub
parent 0fa98d43ed
commit f42394d736
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1938,7 +1938,11 @@ async def test_clear_pending_roots(
cleared_root = json.loads(stdout)
stderr = await process.stderr.read()
assert process.returncode == 0
assert stderr == b""
if sys.version_info >= (3, 10, 6):
assert stderr == b""
else:
# https://github.com/python/cpython/issues/92841
assert stderr == b"" or b"_ProactorBasePipeTransport.__del__" in stderr
elif layer == InterfaceLayer.client:
client = await DataLayerRpcClient.create(
self_hostname=self_hostname,