diff options
author | jackh-ncl <1750152+jackh-ncl@users.noreply.github.com> | 2022-06-04 03:15:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-04 03:15:58 (GMT) |
commit | 8150b8cf7fe09d601246f5bdc6456a0e31f31bca (patch) | |
tree | 1e1e7c0da179deebbdcb9e096526928d99bdaf01 | |
parent | 3284f86b51e74dc7f3c5110330cde60734fa49d0 (diff) | |
download | cpython-8150b8cf7fe09d601246f5bdc6456a0e31f31bca.zip cpython-8150b8cf7fe09d601246f5bdc6456a0e31f31bca.tar.gz cpython-8150b8cf7fe09d601246f5bdc6456a0e31f31bca.tar.bz2 |
gh-92886: Fix test that fails when running with `-O` in `test_imaplib.py` (#93237)
-rw-r--r-- | Lib/test/test_imaplib.py | 1 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Tests/2022-05-25-23-07-15.gh-issue-92886.Aki63_.rst | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_imaplib.py b/Lib/test/test_imaplib.py index ff13ede..ed26fa1 100644 --- a/Lib/test/test_imaplib.py +++ b/Lib/test/test_imaplib.py @@ -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'']} diff --git a/Misc/NEWS.d/next/Tests/2022-05-25-23-07-15.gh-issue-92886.Aki63_.rst b/Misc/NEWS.d/next/Tests/2022-05-25-23-07-15.gh-issue-92886.Aki63_.rst new file mode 100644 index 0000000..581f6bf --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2022-05-25-23-07-15.gh-issue-92886.Aki63_.rst @@ -0,0 +1 @@ +Fixing tests that fail when running with optimizations (``-O``) in ``test_imaplib.py``. |