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

Method test_base_interpreter

Lib/test/test_build_details.py:70–77  ·  view source on GitHub ↗

Test the base_interpreter entry. The generic test wants the key to be missing. If your implementation provides a value for it, you should override this test.

(self)

Source from the content-addressed store, hash-verified

68 self.assertIsInstance(self.key('base_prefix'), str)
69
70 def test_base_interpreter(self):
71 """Test the base_interpreter entry.
72
73 The generic test wants the key to be missing. If your implementation
74 provides a value for it, you should override this test.
75 """
76 with self.assertRaises(KeyError):
77 self.key('base_interpreter')
78
79 def test_platform(self):
80 self.assertEqual(self.key('platform'), sysconfig.get_platform())

Callers

nothing calls this directly

Calls 2

keyMethod · 0.95
assertRaisesMethod · 0.45

Tested by

no test coverage detected