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/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:aca275e1-cc59-1372-af94-2d34d1f68cb0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B134:25B5C6:73EDD4:A213F9:696A2992 |
| html-safe-nonce | a409dda6243d69d5bacb4a9216b7cc28dc57026b1a752a5d715feafe3841cd5d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTM0OjI1QjVDNjo3M0VERDQ6QTIxM0Y5OjY5NkEyOTkyIiwidmlzaXRvcl9pZCI6IjExMjkxODM1Nzg2MTI3MDU2ODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1c7d524e921b097fec711500209e800a973a0c1d683158052d219d6d46c7272e |
| hovercard-subject-tag | pull_request:947635001 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/files |
| 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 | a1022f03e4f0d91ea173e4e5dac892c982e0588c62f1ce56121d755a320a3569 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f472b8e6c7b3fdd5d0354972a3f4c516289bf0be |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width