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

Method test_initialize_twice

Lib/test/test_embed.py:365–372  ·  view source on GitHub ↗

bpo-33932: Calling Py_Initialize() twice should do nothing (and not crash!).

(self)

Source from the content-addressed store, hash-verified

363 self.assertEqual(err, '')
364
365 def test_initialize_twice(self):
366 """
367 bpo-33932: Calling Py_Initialize() twice should do nothing (and not
368 crash!).
369 """
370 out, err = self.run_embedded_interpreter("test_initialize_twice")
371 self.assertEqual(out, '')
372 self.assertEqual(err, '')
373
374 def test_initialize_pymain(self):
375 """

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45

Tested by

no test coverage detected