bpo-36348: test_imaplib: add debug info (GH-12846)

Log more info if tests fail.
1 file changed