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

Method test_flags

Lib/test/_test_multiprocessing.py:5776–5786  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5774 print(json.dumps(flags))
5775
5776 def test_flags(self):
5777 import json
5778 # start child process using unusual flags
5779 prog = (
5780 'from test._test_multiprocessing import TestFlags; '
5781 f'TestFlags.run_in_child({multiprocessing.get_start_method()!r})'
5782 )
5783 data = subprocess.check_output(
5784 [sys.executable, '-E', '-S', '-O', '-c', prog])
5785 child_flags, grandchild_flags = json.loads(data.decode('ascii'))
5786 self.assertEqual(child_flags, grandchild_flags)
5787
5788#
5789# Test interaction with socket timeouts - see Issue #6056

Callers

nothing calls this directly

Calls 5

get_start_methodMethod · 0.45
check_outputMethod · 0.45
loadsMethod · 0.45
decodeMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected