test: remove all cache-related logic in the FFI pytest plugin

This commit is contained in:
holger krekel
2026-08-11 21:27:53 +02:00
parent 6beced4f51
commit 3363f63316
3 changed files with 31 additions and 190 deletions

View File

@@ -49,7 +49,10 @@ class DirectImap:
self.conn.login(user, pw)
self.select_folder("INBOX")
return
except (OSError, ssl.SSLError, imaplib.IMAP4.error):
except (OSError, imaplib.IMAP4.abort) as e:
# OSError covers ssl.SSLError, "abort" is a dropped connection;
# permanent IMAP errors (login rejected etc) must not be retried.
print(f"direct_imap connect to {host} failed ({e!r}), retrying")
time.sleep(1)
def shutdown(self):