MCPcopy Index your code
hub / github.com/RustPython/RustPython / code

Method code

Lib/test/test_importlib/test_api.py:189–193  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

187
188 def test_module_replaced(self):
189 def code():
190 import sys
191 module = type(sys)('top_level')
192 module.spam = 3
193 sys.modules['top_level'] = module
194 mock = test_util.mock_spec('top_level',
195 module_code={'top_level': code})
196 with mock:

Callers 5

launch_processFunction · 0.80
socket_needsMethod · 0.80
readMethod · 0.80
convert_openssl_errorFunction · 0.80
convert_ssl_errorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected