Title: bpo-46425: fix direct invocation of `test_importlib` by sobolevn · Pull Request #30682 · python/cpython · GitHub
Open Graph Title: bpo-46425: fix direct invocation of `test_importlib` by sobolevn · Pull Request #30682 · python/cpython
X Title: bpo-46425: fix direct invocation of `test_importlib` by sobolevn · Pull Request #30682 · python/cpython
Description: Multiple tests in test_importlib were not suited to direct invocation. Why?
Some tests did miss unittest.main() call
Some tests used relative import style, here's how it were:
» ./python.exe ./Lib/test/test_importlib/test_open.py
Traceback (most recent call last):
File "/Users/sobolev/Desktop/cpython/./Lib/test/test_importlib/test_open.py", line 4, in
Open Graph Description: Multiple tests in test_importlib were not suited to direct invocation. Why? Some tests did miss unittest.main() call Some tests used relative import style, here's how it were: » ./python.exe ...
X Description: Multiple tests in test_importlib were not suited to direct invocation. Why? Some tests did miss unittest.main() call Some tests used relative import style, here's how it were: » ./python....
Opengraph URL: https://github.com/python/cpython/pull/30682
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:3d492f34-317b-74e4-61a3-77f85d1f57ef |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CE90:6F7C:55B2B7:70F4E1:696B4389 |
| html-safe-nonce | 7071af8f36c49549006bd09f12423885bf1d24a4670c928a1cd9a5be21360553 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTkwOjZGN0M6NTVCMkI3OjcwRjRFMTo2OTZCNDM4OSIsInZpc2l0b3JfaWQiOiI0ODg1MzU4NzY3OTA2NzAyMjE3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2828a50ab63b85921060eb3bdfc59b1425fee2d9fd43678f44b031fe24b5b249 |
| hovercard-subject-tag | pull_request:826356405 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/python/cpython/pull/30682/files |
| twitter:image | https://avatars.githubusercontent.com/u/4660275?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/4660275?s=400&v=4 |
| og:image:alt | Multiple tests in test_importlib were not suited to direct invocation. Why? Some tests did miss unittest.main() call Some tests used relative import style, here's how it were: » ./python.exe ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width