diff --git a/test/unit/test_cache.py b/test/unit/test_cache.py index d490e4c04..11d01f7c9 100644 --- a/test/unit/test_cache.py +++ b/test/unit/test_cache.py @@ -349,13 +349,11 @@ def test_filelock_hang(self, tmpdir, caplog): # changes, we set force_flush to True with c._lock: assert not c._save(force_flush=True) - assert caplog.record_tuples == [ - ( - "snowflake.connector.cache", - logging.DEBUG, - f"acquiring {c._file_lock_path} timed out, skipping saving...", - ), - ] + assert ( + "snowflake.connector.cache", + logging.DEBUG, + f"acquiring {c._file_lock_path} timed out, skipping saving...", + ) in caplog.record_tuples def test_pickle(self, tmpdir): c = AlwaysSaveSFDictFileCache(file_path=os.path.join(tmpdir, "cache.txt"))