mirror of https://github.com/grpc/grpc.git
[Test] Do not use importlib find_module API, removed in Python 3.12 (#33506)
This API was [removed in Python 3.12](https://github.com/python/cpython/issues/98040). Fixes Python 3.12 support in `grpcio` tests. This is relevant to https://github.com/grpc/grpc/issues/33063. See also https://github.com/grpc/grpc/pull/33492. ---- I have actually only tested this in a form backported to grpc 1.48.4, and I am not able to test the change to `bazel/_gevent_test_main.py` directly. However, the backported form allows me to build grpc 1.48.4 for Fedora Rawhide with Python 3.12, and I believe the version in this PR to be correct—especially, if CI passes for Python 3.11, I believe this part of the test code will continue to work in Python 3.12.pull/34271/head
parent
5bab2976c4
commit
efc3843fb7
2 changed files with 7 additions and 3 deletions
Loading…
Reference in new issue