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

Method check_compatible_here

Lib/test/test_import/__init__.py:2262–2272  ·  view source on GitHub ↗
(self, name, filename=None, *,
                              strict=False,
                              isolated=False,
                              )

Source from the content-addressed store, hash-verified

2260 return os.read(r, 100)
2261
2262 def check_compatible_here(self, name, filename=None, *,
2263 strict=False,
2264 isolated=False,
2265 ):
2266 # Verify that the named module may be imported in a subinterpreter.
2267 # (See run_here() for more info.)
2268 out = self.run_here(name, filename,
2269 check_singlephase_setting=strict,
2270 isolated=isolated,
2271 )
2272 self.assertEqual(out, b'okay')
2273
2274 def check_incompatible_here(self, name, filename=None, *, isolated=False):
2275 # Differences from check_compatible_here():

Calls 2

run_hereMethod · 0.95
assertEqualMethod · 0.45