Thanks to visit codestin.com Credit goes to github.com
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 414dcb1 commit 626d397Copy full SHA for 626d397
1 file changed
Lib/test/test_inspect.py
@@ -587,11 +587,12 @@ def test_getsource_on_code_object(self):
587
588
class TestGetsourceInteractive(unittest.TestCase):
589
def tearDown(self):
590
- mod.ParrotDroppings.__module__ = mod
+ mod.ParrotDroppings.__module__ = self.mod
591
sys.modules['__main__'] = self.main
592
593
def test_getclasses_interactive(self):
594
self.main = sys.modules['__main__']
595
+ self.mod = mod.ParrotDroppings.__module__
596
class MockModule:
597
__file__ = None
598
sys.modules['__main__'] = MockModule
0 commit comments