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

(cherry picked from commit 8150b8cf7f)

Co-authored-by: jackh-ncl <1750152+jackh-ncl@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2022-06-03 20:38:54 -07:00 committed by GitHub
parent b382bf50c5
commit 7b3cf3a288
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -936,6 +936,7 @@ def test_with_statement_logout(self):
@threading_helper.reap_threads
@cpython_only
@unittest.skipUnless(__debug__, "Won't work if __debug__ is False")
def test_dump_ur(self):
# See: http://bugs.python.org/issue26543
untagged_resp_dict = {'READ-WRITE': [b'']}

View file

@ -0,0 +1 @@
Fixing tests that fail when running with optimizations (``-O``) in ``test_imaplib.py``.