Title: test_array modifies `warnings.filter` · Issue #106162 · python/cpython · GitHub
Open Graph Title: test_array modifies `warnings.filter` · Issue #106162 · python/cpython
X Title: test_array modifies `warnings.filter` · Issue #106162 · python/cpython
Description: $ ./python -m test test_array --fail-env-changed -m test.test_array.ArrayReconstructorTest.test_error 0:00:00 load avg: 17.75 Run tests sequentially 0:00:00 load avg: 17.75 [1/1] test_array Warning -- warnings.filters was modified by tes...
Open Graph Description: $ ./python -m test test_array --fail-env-changed -m test.test_array.ArrayReconstructorTest.test_error 0:00:00 load avg: 17.75 Run tests sequentially 0:00:00 load avg: 17.75 [1/1] test_array Warning...
X Description: $ ./python -m test test_array --fail-env-changed -m test.test_array.ArrayReconstructorTest.test_error 0:00:00 load avg: 17.75 Run tests sequentially 0:00:00 load avg: 17.75 [1/1] test_array Warning...
Opengraph URL: https://github.com/python/cpython/issues/106162
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_array modifies `warnings.filter`","articleBody":"```\r\n$ ./python -m test test_array --fail-env-changed -m test.test_array.ArrayReconstructorTest.test_error\r\n0:00:00 load avg: 17.75 Run tests sequentially\r\n0:00:00 load avg: 17.75 [1/1] test_array\r\nWarning -- warnings.filters was modified by test_array\r\nWarning -- Before: (140159909806320, [], [])\r\nWarning -- After: (140159909806320, [], [('ignore', re.compile(\"The 'u' type code is deprecated and will be removed in Python 3.16\", re.IGNORECASE), \u003cclass 'DeprecationWarning'\u003e, None, 0)]) \r\ntest_array failed (env changed)\r\n\r\n== Tests result: ENV CHANGED ==\r\n\r\n1 test altered the execution environment:\r\n test_array\r\n\r\nTotal duration: 321 ms\r\nTests result: ENV CHANGED\r\n```\r\n\r\ncc @methane @hugovk \n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-106181\n* gh-106404\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2023-06-27T23:33:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/106162/cpython/issues/106162"}
| 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:d03e7e2f-5f61-0a0d-d9f9-604c418821ee |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9452:1FFDC1:3E81E9:57AA65:696A0AF2 |
| html-safe-nonce | cbadd5f694c5dccad60fc4c2d36ab7a807da9c485d181b773241bc83eb667274 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDUyOjFGRkRDMTozRTgxRTk6NTdBQTY1OjY5NkEwQUYyIiwidmlzaXRvcl9pZCI6IjU3MDA0Mzc0MTQ4NjU2Njg4NTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ce06a54d1065d2fb8d852a16c13beaa86621b39614ef54727609be1e139676b4 |
| hovercard-subject-tag | issue:1777900760 |
| 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/106162/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1d62163e2d4e342fb0903d7bc21a234a6cec80f98ff9f6f46711be69402adacb/python/cpython/issues/106162 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1d62163e2d4e342fb0903d7bc21a234a6cec80f98ff9f6f46711be69402adacb/python/cpython/issues/106162 |
| og:image:alt | $ ./python -m test test_array --fail-env-changed -m test.test_array.ArrayReconstructorTest.test_error 0:00:00 load avg: 17.75 Run tests sequentially 0:00:00 load avg: 17.75 [1/1] test_array Warning... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 699227a00bbb7fe1eec276d2ae1c3a93068bc5ba483bd9dc4b2a27a8f4f2f595 |
| 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 | 7266b2d935baa1c6474b16dd9feaa5ca30607261 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width