We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed4a978 commit 14fbd4eCopy full SHA for 14fbd4e
Lib/test/test_inspect.py
@@ -990,6 +990,9 @@ def f(self):
990
with DirsOnSysPath(tempdir):
991
import inspect_actual
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")
996
997
@unittest.skipIf(
998
support.is_emscripten or support.is_wasi,
0 commit comments