Title: gh-107446: Fix test_inspect.test_class_with_method_from_other_module under --forever by gaogaotiantian · Pull Request #107451 · python/cpython · GitHub
Open Graph Title: gh-107446: Fix test_inspect.test_class_with_method_from_other_module under --forever by gaogaotiantian · Pull Request #107451 · python/cpython
X Title: gh-107446: Fix test_inspect.test_class_with_method_from_other_module under --forever by gaogaotiantian · Pull Request #107451 · python/cpython
Description: The test creates a temporary directory to store the modules every time it executes. However, with --forever, the test will run more than once. When the old directory got removed, the cached module would lost source. In order to fix this, we can simply remove the module from sys.modules and force the module to be reloaded every time. Issue: gh-107446
Open Graph Description: The test creates a temporary directory to store the modules every time it executes. However, with --forever, the test will run more than once. When the old directory got removed, the cached module ...
X Description: The test creates a temporary directory to store the modules every time it executes. However, with --forever, the test will run more than once. When the old directory got removed, the cached module ...
Opengraph URL: https://github.com/python/cpython/pull/107451
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e17a20ae-ee83-c9c5-96aa-009822ff6540 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A57C:288515:14C67CB:1BBE31F:6A5349AB |
| html-safe-nonce | 41a71474c325abb7b317ec605e60b0cf41ecbdd4c9bccb936439e2c04ecf5641 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTdDOjI4ODUxNToxNEM2N0NCOjFCQkUzMUY6NkE1MzQ5QUIiLCJ2aXNpdG9yX2lkIjoiMjA0NjM5ODg4ODY0MzA4Njc2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a840f9d86c75f98d598750ec7ae6a4aac1518a5ea7ec089997dc59cd4c4ed05a |
| hovercard-subject-tag | pull_request:1454967312 |
| 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/107451/files |
| twitter:image | https://avatars.githubusercontent.com/u/13121107?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/13121107?s=400&v=4 |
| og:image:alt | The test creates a temporary directory to store the modules every time it executes. However, with --forever, the test will run more than once. When the old directory got removed, the cached module ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 |
| disable-turbo | true |
| 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