gh-92886: Fix test that fails when running with `-O` in `test_imaplib.py` (#93237)

2 files changed