]> granicus.if.org Git - python/commit
bpo-38234: Fix test_embed.test_init_setpath_config() on FreeBSD (GH-16406)
authorVictor Stinner <vstinner@redhat.com>
Thu, 26 Sep 2019 02:01:49 +0000 (04:01 +0200)
committerGitHub <noreply@github.com>
Thu, 26 Sep 2019 02:01:49 +0000 (04:01 +0200)
commit49d99f01e6e51acec5ca57a02e857f0796bc418b
treeb38801ae16e872c8739d3fa4cd03c1e923ff5bbe
parent88feaecd46a8f427e30ef7ad8cfcddfe392a2402
bpo-38234: Fix test_embed.test_init_setpath_config() on FreeBSD (GH-16406)

Explicitly preinitializes with a Python preconfiguration to avoid
Py_SetPath() implicit preinitialization with a compat
preconfiguration.

Fix also test_init_setpath() and test_init_setpythonhome() on macOS:
use self.test_exe as the executable (and base_executable), rather
than shutil.which('python3').
Lib/test/test_embed.py
Programs/_testembed.c