Title: gh-92886: Fix tests that fail when running with optimizations (`-O`) in `_test_multiprocessing.py` by jackh-ncl · Pull Request #93233 · python/cpython · GitHub
Open Graph Title: gh-92886: Fix tests that fail when running with optimizations (`-O`) in `_test_multiprocessing.py` by jackh-ncl · Pull Request #93233 · python/cpython
X Title: gh-92886: Fix tests that fail when running with optimizations (`-O`) in `_test_multiprocessing.py` by jackh-ncl · Pull Request #93233 · python/cpython
Description: #92886 Before: $ ./python.exe -Om unittest test._test_multiprocessing ...........s.............s........F..F................ ====================================================================== FAIL: test_dict (test._test_multiprocessing.TestSyncManagerTypes.test_dict) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/.../dev/cpython/Lib/test/_test_multiprocessing.py", line 5726, in test_dict self.assertEqual(len(o), 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: 1 != 0 ====================================================================== FAIL: test_list (test._test_multiprocessing.TestSyncManagerTypes.test_list) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/.../dev/cpython/Lib/test/_test_multiprocessing.py", line 5708, in test_list self.assertEqual(len(o), 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: 1 != 0 ---------------------------------------------------------------------- Ran 54 tests in 24.460s FAILED (failures=2, skipped=2) After: $ ./python.exe -Om unittest test._test_multiprocessing ...........s.............s............................ ---------------------------------------------------------------------- Ran 54 tests in 24.588s OK (skipped=2)
Open Graph Description: #92886 Before: $ ./python.exe -Om unittest test._test_multiprocessing ...........s.............s........F..F................ ====================================================================== ...
X Description: #92886 Before: $ ./python.exe -Om unittest test._test_multiprocessing ...........s.............s........F..F................ ====================================================================== ...
Opengraph URL: https://github.com/python/cpython/pull/93233
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:f8314e81-0739-ea0f-ed8d-09defc11265a |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | B9B2:4CEB4:1037DFF:1627C47:6969F381 |
| html-safe-nonce | f5a268e19ba8011545c869cbe22f3997dfe222154346cd880eb748464aa2409e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUIyOjRDRUI0OjEwMzdERkY6MTYyN0M0Nzo2OTY5RjM4MSIsInZpc2l0b3JfaWQiOiIzNjkwMzE1NTM5Nzc1MzUzNzI5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 037d853f9b6f9af47267a71c51522df52222ac3018530b8a912a013ec732d813 |
| hovercard-subject-tag | pull_request:947635001 |
| 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/93233/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_multiprocessing ...........s.............s........F..F................ ====================================================================== ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width