Title: Improve test case `test_loop_is_closed_resource_warnings` · Issue #112186 · python/cpython · GitHub
Open Graph Title: Improve test case `test_loop_is_closed_resource_warnings` · Issue #112186 · python/cpython
X Title: Improve test case `test_loop_is_closed_resource_warnings` · Issue #112186 · python/cpython
Description: If this exception is expected then why not use `self.assertRaises` etc? Originally posted by @kumaraditya303 in #111983 (comment) Linked PRs gh-112187 gh-112255 gh-112261
Open Graph Description: If this exception is expected then why not use `self.assertRaises` etc? Originally posted by @kumaraditya303 in #111983 (comment) Linked PRs gh-112187 gh-112255 gh-112261
X Description: If this exception is expected then why not use `self.assertRaises` etc? Originally posted by @kumaraditya303 in #111983 (comment) Linked PRs gh-112187 gh-112255 gh-112261
Opengraph URL: https://github.com/python/cpython/issues/112186
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve test case `test_loop_is_closed_resource_warnings`","articleBody":" If this exception is expected then why not use `self.assertRaises` etc?\r\n\r\n_Originally posted by @kumaraditya303 in https://github.com/python/cpython/pull/111983#discussion_r1393608295_\r\n \n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-112187\n* gh-112255\n* gh-112261\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/dpr-0","@type":"Person","name":"dpr-0"},"datePublished":"2023-11-17T02:56:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/112186/cpython/issues/112186"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6c8ab230-c2d7-cbf7-8050-75d635a4c76c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF84:2AA429:F13812:14F30BF:696A3CA9 |
| html-safe-nonce | db7cb372b2a22b80be3a9bbcacc6f81260196ea9d25313cf74cfacd87cd5735e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjg0OjJBQTQyOTpGMTM4MTI6MTRGMzBCRjo2OTZBM0NBOSIsInZpc2l0b3JfaWQiOiI3MzE2MDE0MjgyNjU2MzMyOTcwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0bb62fe0b6128511699ed20ce1b85597577dadcb52cb5dd26f2990c3b7d3ec8e |
| hovercard-subject-tag | issue:1998175255 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/112186/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2be0d42ade452a7154c4664dead44b28c27cde80297ec119b7bfe3ab3d3d597a/python/cpython/issues/112186 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2be0d42ade452a7154c4664dead44b28c27cde80297ec119b7bfe3ab3d3d597a/python/cpython/issues/112186 |
| og:image:alt | If this exception is expected then why not use `self.assertRaises` etc? Originally posted by @kumaraditya303 in #111983 (comment) Linked PRs gh-112187 gh-112255 gh-112261 |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dpr-0 |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 13581a31d51edf4a3aca179e10890a4d4f9b6d76 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width