(self)
| 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 |
nothing calls this directly
no test coverage detected