gh-92886: Fix test that fails when running with -O in test_imaplib.py (#93237)

This commit is contained in:
jackh-ncl 2022-06-04 04:15:58 +01:00 committed by GitHub
parent 3284f86b51
commit 8150b8cf7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -939,6 +939,7 @@ class ThreadedNetworkedTests(unittest.TestCase):
@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'']}

View file

@ -0,0 +1 @@
Fixing tests that fail when running with optimizations (``-O``) in ``test_imaplib.py``.