potiuk commented on code in PR #36199:
URL: https://github.com/apache/airflow/pull/36199#discussion_r1425181498


##########
tests/io/test_path.py:
##########
@@ -300,3 +301,6 @@ def test_backwards_compat(self):
 
         with pytest.raises(AttributeError):
             get_fs("file", storage_options={"foo": "bar"})
+
+        # Reset the cache to avoid side effects
+        _register_filesystems.cache_clear()

Review Comment:
   But I think It would be better to use `try/finally` or - better - pytest 
fixture. This way the cache will be cleared even if the test fails 
@bolkedebruin 



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to