Title: bpo-37015: Ensure tasks created by _accept_connection2 due to AsyncMock are completed by tirkarthi · Pull Request #13661 · python/cpython · GitHub
Open Graph Title: bpo-37015: Ensure tasks created by _accept_connection2 due to AsyncMock are completed by tirkarthi · Pull Request #13661 · python/cpython
X Title: bpo-37015: Ensure tasks created by _accept_connection2 due to AsyncMock are completed by tirkarthi · Pull Request #13661 · python/cpython
Description: From 3.8 async functions used with mock.patch return an AsyncMock. _accept_connection2 is an async function where create_task is also mocked. Don't mock create_task so that tasks are created out of coroutine returned by AsyncMock and the tasks are completed. https://bugs.python.org/issue37015
Open Graph Description: From 3.8 async functions used with mock.patch return an AsyncMock. _accept_connection2 is an async function where create_task is also mocked. Don't mock create_task so that tasks are created ou...
X Description: From 3.8 async functions used with mock.patch return an AsyncMock. _accept_connection2 is an async function where create_task is also mocked. Don't mock create_task so that tasks are create...
Opengraph URL: https://github.com/python/cpython/pull/13661
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4f3133af-68ae-644e-885e-895d4c762149 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A3AA:87739:10E05B2:17A10B1:696A376A |
| html-safe-nonce | 1696d5075858dffa3de42507b0fb271dc239dbbded7aeb66a7a162fc1f21ddb8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0FBOjg3NzM5OjEwRTA1QjI6MTdBMTBCMTo2OTZBMzc2QSIsInZpc2l0b3JfaWQiOiIzMjQ5MTA2MjY5ODg3NjcwODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7414d73057acc9c24227de06189ac1a12505ed7d3563c98d1b7db2f3f73547a7 |
| hovercard-subject-tag | pull_request:283390782 |
| 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/13661/files |
| twitter:image | https://avatars.githubusercontent.com/u/3972343?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/3972343?s=400&v=4 |
| og:image:alt | From 3.8 async functions used with mock.patch return an AsyncMock. _accept_connection2 is an async function where create_task is also mocked. Don't mock create_task so that tasks are created ou... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 321736bfdb3f591415ae895a0459bec204b26a76caf47ba5c980634cfacc4538 |
| 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 |
| disable-turbo | true |
| 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