mirror of
https://github.com/python/cpython.git
synced 2026-04-22 03:41:08 +00:00
bpo-35233: Fix test_embed.InitConfigTests on macOS (GH-10539)
On macOS and Windows, Py_HasFileSystemDefaultEncoding is 1 by default.
This commit is contained in:
parent
88cbea4c6f
commit
bc09ee8bc9
1 changed files with 2 additions and 1 deletions
|
|
@ -287,9 +287,10 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
|
|||
'Py_VerboseFlag': 0,
|
||||
}
|
||||
if os.name == 'nt':
|
||||
DEFAULT_GLOBAL_CONFIG['Py_HasFileSystemDefaultEncoding'] = 1
|
||||
DEFAULT_GLOBAL_CONFIG['Py_LegacyWindowsFSEncodingFlag'] = 0
|
||||
DEFAULT_GLOBAL_CONFIG['Py_LegacyWindowsStdioFlag'] = 0
|
||||
if sys.platform in ('win32', 'darwin'):
|
||||
DEFAULT_GLOBAL_CONFIG['Py_HasFileSystemDefaultEncoding'] = 1
|
||||
|
||||
DEFAULT_CORE_CONFIG = {
|
||||
'install_signal_handlers': 1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue