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

Method check_incompatible

Lib/test/test_import/__init__.py:2481–2487  ·  view source on GitHub ↗
(setting, override)

Source from the content-addressed store, hash-verified

2479 self.assertEqual(out, b'okay')
2480
2481 def check_incompatible(setting, override):
2482 out = self.run_here(
2483 module,
2484 check_singlephase_setting=setting,
2485 check_singlephase_override=override,
2486 )
2487 self.assertNotEqual(out, b'okay')
2488
2489 with self.subTest('config: check enabled; override: enabled'):
2490 check_incompatible(True, 1)

Callers

nothing calls this directly

Calls 2

run_hereMethod · 0.95
assertNotEqualMethod · 0.80

Tested by

no test coverage detected