Skip to content

Commit 8150b8c

Browse files
authored
gh-92886: Fix test that fails when running with -O in test_imaplib.py (#93237)
1 parent 3284f86 commit 8150b8c

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
@@ -939,6 +939,7 @@ def test_with_statement_logout(self):
939939

940940
@threading_helper.reap_threads
941941
@cpython_only
942+
@unittest.skipUnless(__debug__, "Won't work if __debug__ is False")
942943
def test_dump_ur(self):
943944
# See: http://bugs.python.org/issue26543
944945
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)