summaryrefslogtreecommitdiff
path: root/pytest.ini
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2021-05-06 11:53:40 +0200
committerGitHub <noreply@github.com>2021-05-06 11:53:40 +0200
commit219eb09e59358b3fb80b1262d778a85bf69dba3c (patch)
tree833160de64732becdd62caa8728fa0ebb7ce81f4 /pytest.ini
parent8f1b7016603d508c2d1918e2c3df0c120928f17d (diff)
downloadspack-219eb09e59358b3fb80b1262d778a85bf69dba3c.tar.gz
spack-219eb09e59358b3fb80b1262d778a85bf69dba3c.tar.bz2
spack-219eb09e59358b3fb80b1262d778a85bf69dba3c.tar.xz
spack-219eb09e59358b3fb80b1262d778a85bf69dba3c.zip
Put a module object in sys.modules before executing module code (#23269)
The loading protocol mandates that the the module we are going to import needs to be already in sys.modules before its code is executed, so to prevent unbounded recursions and multiple loading. Loading a module from file exits early if the module is already in sys.modules
Diffstat (limited to 'pytest.ini')
0 files changed, 0 insertions, 0 deletions