Skip to content

Commit

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

(cherry picked from commit 8150b8c)

Co-authored-by: jackh-ncl <1750152+jackh-ncl@users.noreply.github.com>
  • Loading branch information
jackh-ncl authored and miss-islington committed Jun 4, 2022
1 parent 9f101c2 commit ed5274c
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 ed5274c

Please sign in to comment.