8000 bpo-35233: Fix test_embed.InitConfigTests on macOS (GH-10539) · python/cpython@bc09ee8 · GitHub
[go: up one dir, main page]

Skip to content

Commit bc09ee8

Browse files
authored
bpo-35233: Fix test_embed.InitConfigTests on macOS (GH-10539)
On macOS and Windows, Py_HasFileSystemDefaultEncoding is 1 by default.
1 parent 88cbea4 commit bc09ee8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_embed.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,10 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
287287
'Py_VerboseFlag': 0,
288288
}
289289
if os.name == 'nt':
290-
DEFAULT_GLOBAL_CONFIG['Py_HasFileSystemDefaultEncoding'] = 1
291290
DEFAULT_GLOBAL_CONFIG['Py_L 5A12 egacyWindowsFSEncodingFlag'] = 0
292291
DEFAULT_GLOBAL_CONFIG['Py_LegacyWindowsStdioFlag'] = 0
292+
if sys.platform in ('win32', 'darwin'):
293+
DEFAULT_GLOBAL_CONFIG['Py_HasFileSystemDefaultEncoding'] = 1
293294

294295
DEFAULT_CORE_CONFIG = {
295296
'install_signal_handlers': 1,

0 commit comments

Comments
 (0)
0