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` (#93237)
  • Loading branch information
jackh-ncl committed Jun 4, 2022
1 parent 3284f86 commit 8150b8c
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 @@ -939,6 +939,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 8150b8c

Please sign in to comment.