-
Type: Build Failure
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
Python Drivers
-
Not Needed
-
Name of Failure:
test.asynchronous.test_encryption.TestKmsRetryProse.test_kms_retry
Link to task:
Context of when and why the failure occurred:
Stack trace:
[2024/12/03 18:42:41.683] FAILURE: NotImplementedError: Cannot make file object of OpenSSL.SSL.Connection () [2024/12/03 18:42:41.683] self = <test.asynchronous.test_encryption.TestKmsRetryProse testMethod=test_kms_retry> [2024/12/03 18:42:41.683] async def test_kms_retry(self): [2024/12/03 18:42:41.683] > await self._test("aws", {"region": "foo", "key": "bar", "endpoint": "127.0.0.1:9003"}) [2024/12/03 18:42:41.683] test/asynchronous/test_encryption.py:2924: [2024/12/03 18:42:41.683] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [2024/12/03 18:42:41.683] test/asynchronous/test_encryption.py:2901: in _test [2024/12/03 18:42:41.683] await self.http_post("/reset") [2024/12/03 18:42:41.683] test/asynchronous/test_encryption.py:2895: in http_post [2024/12/03 18:42:41.683] res = conn.getresponse() [2024/12/03 18:42:41.683] /opt/python/3.12/lib/python3.12/http/client.py:1424: in getresponse [2024/12/03 18:42:41.683] response = self.response_class(self.sock, method=self._method) [2024/12/03 18:42:41.683] /opt/python/3.12/lib/python3.12/http/client.py:269: in __init__ [2024/12/03 18:42:41.683] self.fp = sock.makefile("rb") [2024/12/03 18:42:41.683] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [2024/12/03 18:42:41.683] self = <pymongo.pyopenssl_context._sslConn object at 0x7fb88487b680> [2024/12/03 18:42:41.683] args = ('rb',), kwargs = {} [2024/12/03 18:42:41.683] def makefile(self, *args: Any, **kwargs: Any) -> typing.NoReturn: [2024/12/03 18:42:41.683] """ [2024/12/03 18:42:41.683] The makefile() method is not implemented, since there is no dup [2024/12/03 18:42:41.683] semantics for SSL connections [2024/12/03 18:42:41.683] [2024/12/03 18:42:41.683] :raise: NotImplementedError [2024/12/03 18:42:41.683] """ [2024/12/03 18:42:41.683] > raise NotImplementedError( [2024/12/03 18:42:41.683] "Cannot make file object of OpenSSL.SSL.Connection" [2024/12/03 18:42:41.683] ) [2024/12/03 18:42:41.683] E NotImplementedError: Cannot make file object of OpenSSL.SSL.Connection [2024/12/03 18:42:41.683] .hatch/data/env/virtual/test/lib/python3.12/site-packages/OpenSSL/SSL.py:2560: NotImplementedError