Files
tar-valon-ansible/plugins/mitogen-0.3.44/tests/testmods/simple_pkg/replaces_self.py
T

5 lines
166 B
Python

# issue #590: this module replaces itself in sys.modules during initialization.
import sys
import testmods.simple_pkg.b
sys.modules[__name__] = testmods.simple_pkg.b