Title: Some test modules fail when run as a script · Issue #104057 · python/cpython · GitHub
Open Graph Title: Some test modules fail when run as a script · Issue #104057 · python/cpython
X Title: Some test modules fail when run as a script · Issue #104057 · python/cpython
Description: C:\Users\KIRILL-1\CLionProjects\cpython> ./python Lib/test/test_module.py Running Debug|x64 interpreter... .....................F.............. ====================================================================== FAIL: test_module_repr...
Open Graph Description: C:\Users\KIRILL-1\CLionProjects\cpython> ./python Lib/test/test_module.py Running Debug|x64 interpreter... .....................F.............. =====================================================...
X Description: C:\Users\KIRILL-1\CLionProjects\cpython> ./python Lib/test/test_module.py Running Debug|x64 interpreter... .....................F.............. ==================================================...
Opengraph URL: https://github.com/python/cpython/issues/104057
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Some test modules fail when run as a script","articleBody":"```python\r\n C:\\Users\\KIRILL-1\\CLionProjects\\cpython\u003e ./python Lib/test/test_module.py\r\nRunning Debug|x64 interpreter...\r\n.....................F..............\r\n======================================================================\r\nFAIL: test_module_repr_with_full_loader (__main__.ModuleTests.test_module_repr_with_full_loader)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\KIRILL-1\\CLionProjects\\cpython\\Lib\\test\\test_module.py\", line 238, in test_module_repr_with_full_loader\r\n self.assertEqual(\r\nAssertionError: \"\u003cmodule 'foo' (\u003cclass '__main__.FullLoader'\u003e)\u003e\" != \"\u003cmodule 'foo' (\u003cclass 'test.test_module.FullLoader'\u003e)\u003e\" \r\n- \u003cmodule 'foo' (\u003cclass '__main__.FullLoader'\u003e)\u003e\r\n? ^ ^^^^^\r\n+ \u003cmodule 'foo' (\u003cclass 'test.test_module.FullLoader'\u003e)\u003e\r\n? ^^^^^^^^^ ^^^^^\r\n\r\n\r\n----------------------------------------------------------------------\r\nRan 36 tests in 0.217s\r\n\r\nFAILED (failures=1)\r\n```\r\nI'll soon send a PR to fix it.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-104059\n* gh-104064\n* gh-104069\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/Eclips4","@type":"Person","name":"Eclips4"},"datePublished":"2023-05-01T19:46:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":15},"url":"https://github.com/104057/cpython/issues/104057"}
| 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:98ced28f-57aa-93c4-a025-7736476b15d6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 927C:2A51AE:1E30F0:27073C:6969AA06 |
| html-safe-nonce | eca571a6f66ac79e541fa660082d8b805a72b602497b2c53f07f64476ee0c140 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjdDOjJBNTFBRToxRTMwRjA6MjcwNzNDOjY5NjlBQTA2IiwidmlzaXRvcl9pZCI6IjE3NDQ0Mjc0NTYxMDIyNDY5MTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a635364ed092f712afb515115ce42498d57ec61f871ce07021a1e8f0cf2aff23 |
| hovercard-subject-tag | issue:1691267560 |
| 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/104057/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e5c19f9b5b28461446589a9fc729023f5c2ff604be298ef1ef413ca64d94f9c0/python/cpython/issues/104057 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e5c19f9b5b28461446589a9fc729023f5c2ff604be298ef1ef413ca64d94f9c0/python/cpython/issues/104057 |
| og:image:alt | C:\Users\KIRILL-1\CLionProjects\cpython> ./python Lib/test/test_module.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 | 24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7 |
| 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 | 124667f43168afb6c9c03b7c02eb5b1d2e1be3d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width