Skip to content

Commit

Permalink
gh-92886: Fix test that fails when running with -O in `test_imaplib…
Browse files Browse the repository at this point in the history
….py` (GH-93237)

(cherry picked from commit 8150b8c)

Co-authored-by: jackh-ncl <[email protected]>
  • Loading branch information
miss-islington and jackh-ncl authored Jun 4, 2022
1 parent b382bf5 commit 7b3cf3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Lib/test/test_imaplib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'']}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixing tests that fail when running with optimizations (``-O``) in ``test_imaplib.py``.

0 comments on commit 7b3cf3a

Please sign in to comment.