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

Method test_get_main

Lib/test/test_interpreters/test_api.py:2060–2066  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2058 _interpreters.new_config(gil=value)
2059
2060 def test_get_main(self):
2061 interpid, whence = _interpreters.get_main()
2062 self.assertEqual(interpid, 0)
2063 self.assertEqual(whence, _interpreters.WHENCE_RUNTIME)
2064 self.assertEqual(
2065 _interpreters.whence(interpid),
2066 _interpreters.WHENCE_RUNTIME)
2067
2068 def test_get_current(self):
2069 with self.subTest('main'):

Callers

nothing calls this directly

Calls 2

whenceMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected