Title: gh-92886: Fixing test that fails when running with optimizations (`-O`) in `test_imaplib.py` by jackh-ncl · Pull Request #93237 · python/cpython · GitHub
Open Graph Title: gh-92886: Fixing test that fails when running with optimizations (`-O`) in `test_imaplib.py` by jackh-ncl · Pull Request #93237 · python/cpython
X Title: gh-92886: Fixing test that fails when running with optimizations (`-O`) in `test_imaplib.py` by jackh-ncl · Pull Request #93237 · python/cpython
Description: #92886
Before:
$ ./python.exe -Om unittest test.test_imaplib
...
======================================================================
ERROR: test_dump_ur (test.test_imaplib.ThreadedNetworkedTests.test_dump_ur)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/.../dev/cpython/Lib/test/support/threading_helper.py", line 63, in decorator
return func(*args)
^^^^^^^^^^^
File "/Users/.../dev/cpython/Lib/test/test_imaplib.py", line 948, in test_dump_ur
with mock.patch.object(imap, '_mesg') as mock_mesg:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/.../dev/cpython/Lib/unittest/mock.py", line 1427, in __enter__
original, local = self.get_original()
^^^^^^^^^^^^^^^^^^^
File "/Users/.../dev/cpython/Lib/unittest/mock.py", line 1400, in get_original
raise AttributeError(
^^^^^^^^^^^^^^^^^^^^^
AttributeError:
Open Graph Description: #92886 Before: $ ./python.exe -Om unittest test.test_imaplib ... ====================================================================== ERROR: test_dump_ur (test.test_imaplib.ThreadedNetworkedTests...
X Description: #92886 Before: $ ./python.exe -Om unittest test.test_imaplib ... ====================================================================== ERROR: test_dump_ur (test.test_imaplib.ThreadedNetworkedTests...
Opengraph URL: https://github.com/python/cpython/pull/93237
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:cffd16bc-be0e-ddbf-51b7-36a413784e67 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 849E:1C99EC:B886EC:100E7DB:696A3453 |
| html-safe-nonce | 3c7360e4c66eee9bdbab187738d81f6fde919d91377af5bc0be399e656470f2d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDlFOjFDOTlFQzpCODg2RUM6MTAwRTdEQjo2OTZBMzQ1MyIsInZpc2l0b3JfaWQiOiIxMzIyNDM5NDU4OTEyMDg5MTcxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4a97046a3766736cee860ee6e905fe92cdad9cfcfb3ec5101908204414bf590c |
| hovercard-subject-tag | pull_request:947653023 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/93237/checks |
| twitter:image | https://avatars.githubusercontent.com/u/1750152?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1750152?s=400&v=4 |
| og:image:alt | #92886 Before: $ ./python.exe -Om unittest test.test_imaplib ... ====================================================================== ERROR: test_dump_ur (test.test_imaplib.ThreadedNetworkedTests... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 321736bfdb3f591415ae895a0459bec204b26a76caf47ba5c980634cfacc4538 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7a9163cefd1ea4bd06f8eb7c082f43e4e53f626f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width