potiuk commented on PR #42027: URL: https://github.com/apache/airflow/pull/42027#issuecomment-2331269535
The problem is that I have not seen any ready-to-use ruff or other rule for that, only Python 3.12 will start to raise those exceptions: ``` FAILED tests/providers/apache/livy/hooks/test_livy.py::TestLivyDbHook::test_post_batch_calls_get_conn_if_no_batch_id - AttributeError: 'not_called' is not a valid assertion. Use a spec for the mock if 'not_called' is meant to be an attribute. ``` Not sure if we can automate it for Python 3.8 (and soon Python 3.9) automatically ? -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
