Title: Running test_typing file directly fails · Issue #104036 · python/cpython · GitHub
Open Graph Title: Running test_typing file directly fails · Issue #104036 · python/cpython
X Title: Running test_typing file directly fails · Issue #104036 · python/cpython
Description: C:\Users\KIRILL-1\CLionProjects\cpython> ./python Lib/test/test_typing.py Running Debug|x64 interpreter... .............................F.......................................................................................................
Open Graph Description: C:\Users\KIRILL-1\CLionProjects\cpython> ./python Lib/test/test_typing.py Running Debug|x64 interpreter... .............................F...............................................................
X Description: C:\Users\KIRILL-1\CLionProjects\cpython> ./python Lib/test/test_typing.py Running Debug|x64 interpreter... .............................F............................................................
Opengraph URL: https://github.com/python/cpython/issues/104036
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Running test_typing file directly fails","articleBody":"```python\r\nC:\\Users\\KIRILL-1\\CLionProjects\\cpython\u003e ./python Lib/test/test_typing.py\r\nRunning Debug|x64 interpreter...\r\n.............................F....................................................................................................\r\n..........................................................................................................s.......................\r\n..................................................................................................................................\r\n..................................................................................................................................\r\n.......................................................\r\n======================================================================\r\nFAIL: test_repr (__main__.AnyTests.test_repr)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\KIRILL-1\\CLionProjects\\cpython\\Lib\\test\\test_typing.py\", line 118, in test_repr\r\n self.assertEqual(\r\nAssertionError: \"\u003cclass '__main__.AnyTests.test_repr.\u003clocals\u003e.Sub'\u003e\" != \"\u003cclass 'test.test_typing.AnyTests.test_repr.\u003clocals\u003e.Sub'\r\n\u003e\"\r\n- \u003cclass '__main__.AnyTests.test_repr.\u003clocals\u003e.Sub'\u003e\r\n? ^^^ ^^\r\n+ \u003cclass 'test.test_typing.AnyTests.test_repr.\u003clocals\u003e.Sub'\u003e\r\n? +++++++++ ^^^ ^\r\n\r\n\r\n----------------------------------------------------------------------\r\nRan 575 tests in 0.815s\r\n\r\nFAILED (failures=1, skipped=1)\r\n```\r\nIt's easy to fix, just need to replace `\"\u003cclass 'test.test_typing.AnyTests.test_repr.\u003clocals\u003e.Sub'\u003e\"` to `f\"\u003cclass '{__name__}.AnyTests.test_repr.\u003clocals\u003e.Sub'\u003e\"`\r\nI'll soon send a PR\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-104037\n* gh-104039\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/Eclips4","@type":"Person","name":"Eclips4"},"datePublished":"2023-05-01T13:05:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/104036/cpython/issues/104036"}
| 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:2d6bca54-eba6-cf50-81ea-8bcd7c20323a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9158:17EBDB:2426F1:3006EC:6969791E |
| html-safe-nonce | 88face86c7f50f45165b65dc8bb52b258badff850addc1fb4c6645977c7cd57e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTU4OjE3RUJEQjoyNDI2RjE6MzAwNkVDOjY5Njk3OTFFIiwidmlzaXRvcl9pZCI6IjU4ODg3MTQ5NDcwMzI2MTExMDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 59670bb85fb9b6d6265cea5325f90becc76b0a2006e9a7b2dc25f5f5213bbc26 |
| hovercard-subject-tag | issue:1690788782 |
| 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/104036/issue_layout |
| twitter:image | https://opengraph.githubassets.com/330b5c5fc262a3861f9b801bff47f07b92cdccd7051f02fc3fd84bb56ed99d9d/python/cpython/issues/104036 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/330b5c5fc262a3861f9b801bff47f07b92cdccd7051f02fc3fd84bb56ed99d9d/python/cpython/issues/104036 |
| og:image:alt | C:\Users\KIRILL-1\CLionProjects\cpython> ./python Lib/test/test_typing.py Running Debug|x64 interpreter... .............................F............................................................... |
| 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 | c6f193beb8ff08443adc07685d75302ab8aaf0a135f6e251c3ff3112c8deb881 |
| 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 | 212e3e3d3298bf5b313830edfd2399e869f7ea76 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width