Title: test_inspect fails with `--forever` argument · Issue #107446 · python/cpython · GitHub
Open Graph Title: test_inspect fails with `--forever` argument · Issue #107446 · python/cpython
X Title: test_inspect fails with `--forever` argument · Issue #107446 · python/cpython
Description: Traceback: ...many lines... test_unwrap_several (test.test_inspect.TestUnwrap.test_unwrap_several) ... ok ====================================================================== ERROR: test_class_with_method_from_other_module (test.test_i...
Open Graph Description: Traceback: ...many lines... test_unwrap_several (test.test_inspect.TestUnwrap.test_unwrap_several) ... ok ====================================================================== ERROR: test_class_wi...
X Description: Traceback: ...many lines... test_unwrap_several (test.test_inspect.TestUnwrap.test_unwrap_several) ... ok ====================================================================== ERROR: test_class_wi...
Opengraph URL: https://github.com/python/cpython/issues/107446
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_inspect fails with `--forever` argument","articleBody":"Traceback:\r\n```python\r\n...many lines...\r\ntest_unwrap_several (test.test_inspect.TestUnwrap.test_unwrap_several) ... ok\r\n\r\n======================================================================\r\nERROR: test_class_with_method_from_other_module (test.test_inspect.TestBuggyCases.test_class_with_method_from_other_module) \r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\KIRILL-1\\CLionProjects\\cpython\\Lib\\test\\test_inspect.py\", line 992, in test_class_with_method_from_other_module \r\n self.assertIn(\"correct\", inspect.getsource(inspect_actual.A))\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\KIRILL-1\\CLionProjects\\cpython\\Lib\\inspect.py\", line 1317, in getsource\r\n lines, lnum = getsourcelines(object)\r\n ^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\KIRILL-1\\CLionProjects\\cpython\\Lib\\inspect.py\", line 1299, in getsourcelines\r\n lines, lnum = findsource(object)\r\n ^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\KIRILL-1\\CLionProjects\\cpython\\Lib\\inspect.py\", line 1134, in findsource\r\n raise OSError('could not get source code')\r\nOSError: could not get source code\r\n\r\n----------------------------------------------------------------------\r\nRan 286 tests in 2.392s\r\n\r\nFAILED (errors=1)\r\ntest test_inspect failed\r\ntest_inspect failed (1 error)\r\n\r\n== Tests result: FAILURE ==\r\n\r\n1 test OK.\r\n\r\n1 test failed:\r\n test_inspect\r\n\r\nTotal duration: 7.2 sec\r\nTests result: FAILURE\r\n```\r\nTriend on current main.\r\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-107451\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/Eclips4","@type":"Person","name":"Eclips4"},"datePublished":"2023-07-29T21:28:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/107446/cpython/issues/107446"}
| 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:b8863bd2-3220-a3ee-910f-ba6df0b55185 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE98:BE119:44EB1B:5B8CDD:6A5294CB |
| html-safe-nonce | 7ff9855b9a84acd30f34fa5625910849d4155a734d6d1ad6302f2f1d345e8238 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTk4OkJFMTE5OjQ0RUIxQjo1QjhDREQ6NkE1Mjk0Q0IiLCJ2aXNpdG9yX2lkIjoiODkzOTQ4NDc5Nzg0MTA4NTY0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 63cad0cab204264eb96d80e0bc54551fb14a7546d2da58e37dd91ea56c0eb6c3 |
| hovercard-subject-tag | issue:1827674005 |
| 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/107446/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3433a58258361bf1b30b4095fb90d1ff512de7be6c02921af2c55b850e24a464/python/cpython/issues/107446 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3433a58258361bf1b30b4095fb90d1ff512de7be6c02921af2c55b850e24a464/python/cpython/issues/107446 |
| og:image:alt | Traceback: ...many lines... test_unwrap_several (test.test_inspect.TestUnwrap.test_unwrap_several) ... ok ====================================================================== ERROR: test_class_wi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Eclips4 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width