Skip to content

Commit 7b3cf3a

Browse files
gh-92886: Fix test that fails when running with -O in test_imaplib.py (GH-93237)
(cherry picked from commit 8150b8c) Co-authored-by: jackh-ncl <[email protected]>
1 parent b382bf5 commit 7b3cf3a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Lib/test/test_imaplib.py

+1
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,7 @@ def test_with_statement_logout(self):
936936

937937
@threading_helper.reap_threads
938938
@cpython_only
939+
@unittest.skipUnless(__debug__, "Won't work if __debug__ is False")
939940
def test_dump_ur(self):
940941
# See: http://bugs.python.org/issue26543
941942
untagged_resp_dict = {'READ-WRITE': [b'']}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixing tests that fail when running with optimizations (``-O``) in ``test_imaplib.py``.

0 commit comments

Comments
 (0)