MCPcopy Index your code
hub / github.com/python/cpython / _prep_interpreter

Method _prep_interpreter

Lib/test/test__interpchannels.py:1505–1519  ·  view source on GitHub ↗
(self, interp)

Source from the content-addressed store, hash-verified

1503 return interp
1504
1505 def _prep_interpreter(self, interp):
1506 if interp.id in self._prepped:
1507 return
1508 self._prepped.add(interp.id)
1509 if interp.name == 'main':
1510 return
1511 run_interp(interp.id, f"""
1512 import _interpchannels as channels
1513 import test.test__interpchannels as helpers
1514 ChannelState = helpers.ChannelState
1515 try:
1516 cid
1517 except NameError:
1518 cid = _channels._channel_id({self.cid})
1519 """)
1520
1521
1522@unittest.skip('these tests take several hours to run')

Callers 2

get_interpreterMethod · 0.95
prep_interpreterMethod · 0.95

Calls 2

run_interpFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected