ashb commented on a change in pull request #15022:
URL: https://github.com/apache/airflow/pull/15022#discussion_r601872099



##########
File path: tests/providers/apache/cassandra/hooks/test_cassandra.py
##########
@@ -72,20 +72,17 @@ def setUp(self):
         hook.shutdown_cluster()
 
     def test_get_conn(self):
-        with mock.patch.object(Cluster, "connect") as mock_connect, mock.patch(
-            "socket.getaddrinfo", return_value=[]

Review comment:
       This likely no longer works because cython "caches"/looks up the built 
in getaddrinfo at compile time, so the mocking has no effect.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to