| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -990,6 +990,9 @@ def f(self): | |||
| 990 | 990 | with DirsOnSysPath(tempdir): | |
| 991 | 991 | import inspect_actual | |
| 992 | 992 | self.assertIn("correct", inspect.getsource(inspect_actual.A)) | |
| 993 | + # Remove the module from sys.modules to force it to be reloaded. | ||
| 994 | + # This is necessary when the test is run multiple times. | ||
| 995 | + sys.modules.pop("inspect_actual") | ||
| 993 | 996 | ||
| 994 | 997 | @unittest.skipIf( | |
| 995 | 998 | support.is_emscripten or support.is_wasi, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments