classification
Title: [3.7] test_embed fails on MacOS buildbots
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: pablogsal, vstinner
Priority: normal Keywords:

Created on 2018-11-14 02:38 by pablogsal, last changed 2018-11-14 11:02 by vstinner. This issue is now closed.

Messages (3)
msg329887 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2018-11-14 02:38
https://buildbot.python.org/all/#/builders/147/builds/430/steps/4/logs/stdio
https://buildbot.python.org/all/#/builders/109/builds/789/steps/4/logs/stdio


======================================================================
FAIL: test_init_default_config (test.test_embed.InitConfigTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.7.billenstein-sierra/build/Lib/test/test_embed.py", line 398, in test_init_default_config
    self.check_config("init_default_config", {}, {})
  File "/Users/buildbot/buildarea/3.7.billenstein-sierra/build/Lib/test/test_embed.py", line 391, in check_config
    self.assertEqual(config['global_config'], expected_global)
AssertionError: {'Py_FileSystemDefaultEncoding': 'utf-8', 'Py_[467 chars]': 0} != {'Py_BytesWarningFlag': 0, 'Py_DebugFlag': 0, [467 chars]': 0}
  {'Py_BytesWarningFlag': 0,
   'Py_DebugFlag': 0,
   'Py_DontWriteBytecodeFlag': 0,
   'Py_FileSystemDefaultEncodeErrors': 'surrogateescape',
   'Py_FileSystemDefaultEncoding': 'utf-8',
   'Py_FrozenFlag': 0,
-  'Py_HasFileSystemDefaultEncoding': 1,
?                                     ^
+  'Py_HasFileSystemDefaultEncoding': 0,
?                                     ^
   'Py_HashRandomizationFlag': 1,
   'Py_IgnoreEnvironmentFlag': 0,
   'Py_InspectFlag': 0,
   'Py_InteractiveFlag': 0,
   'Py_IsolatedFlag': 0,
   'Py_NoSiteFlag': 0,
   'Py_NoUserSiteDirectory': 0,
   'Py_OptimizeFlag': 0,
   'Py_QuietFlag': 0,
   'Py_UTF8Mode': 0,
   'Py_UnbufferedStdioFlag': 0,
   'Py_VerboseFlag': 0}
======================================================================
FAIL: test_init_dev_mode (test.test_embed.InitConfigTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.7.billenstein-sierra/build/Lib/test/test_embed.py", line 479, in test_init_dev_mode
    self.check_config("init_dev_mode", core_config, {})
  File "/Users/buildbot/buildarea/3.7.billenstein-sierra/build/Lib/test/test_embed.py", line 391, in check_config
    self.assertEqual(config['global_config'], expected_global)
AssertionError: {'Py_FileSystemDefaultEncoding': 'utf-8', 'Py_[467 chars]': 0} != {'Py_BytesWarningFlag': 0, 'Py_DebugFlag': 0, [467 chars]': 0}
  {'Py_BytesWarningFlag': 0,
   'Py_DebugFlag': 0,
   'Py_DontWriteBytecodeFlag': 0,
   'Py_FileSystemDefaultEncodeErrors': 'surrogateescape',
   'Py_FileSystemDefaultEncoding': 'utf-8',
   'Py_FrozenFlag': 0,
-  'Py_HasFileSystemDefaultEncoding': 1,
?                                     ^
+  'Py_HasFileSystemDefaultEncoding': 0,
?                                     ^
   'Py_HashRandomizationFlag': 1,
   'Py_IgnoreEnvironmentFlag': 0,
   'Py_InspectFlag': 0,
   'Py_InteractiveFlag': 0,
   'Py_IsolatedFlag': 0,
   'Py_NoSiteFlag': 0,
   'Py_NoUserSiteDirectory': 0,
   'Py_OptimizeFlag': 0,
   'Py_QuietFlag': 0,
   'Py_UTF8Mode': 0,
   'Py_UnbufferedStdioFlag': 0,
   'Py_VerboseFlag': 0}
======================================================================
FAIL: test_init_isolated (test.test_embed.InitConfigTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.7.billenstein-sierra/build/Lib/test/test_embed.py", line 489, in test_init_isolated
    self.check_config("init_isolated", core_config, global_config)
  File "/Users/buildbot/buildarea/3.7.billenstein-sierra/build/Lib/test/test_embed.py", line 391, in check_config
    self.assertEqual(config['global_config'], expected_global)
AssertionError: {'Py_FileSystemDefaultEncoding': 'utf-8', 'Py_[467 chars]': 1} != {'Py_BytesWarningFlag': 0, 'Py_DebugFlag': 0, [467 chars]': 1}
  {'Py_BytesWarningFlag': 0,
   'Py_DebugFlag': 0,
   'Py_DontWriteBytecodeFlag': 0,
   'Py_FileSystemDefaultEncodeErrors': 'surrogateescape',
   'Py_FileSystemDefaultEncoding': 'utf-8',
   'Py_FrozenFlag': 0,
-  'Py_HasFileSystemDefaultEncoding': 1,
?                                     ^
+  'Py_HasFileSystemDefaultEncoding': 0,
?                                     ^
   'Py_HashRandomizationFlag': 1,
   'Py_IgnoreEnvironmentFlag': 1,
   'Py_InspectFlag': 0,
   'Py_InteractiveFlag': 0,
   'Py_IsolatedFlag': 1,
   'Py_NoSiteFlag': 0,
   'Py_NoUserSiteDirectory': 1,
   'Py_OptimizeFlag': 0,
   'Py_QuietFlag': 0,
   'Py_UTF8Mode': 0,
   'Py_UnbufferedStdioFlag': 0,
   'Py_VerboseFlag': 0}
----------------------------------------------------------------------
Ran 15 tests in 6.518s
FAILED (failures=3)
1 test failed again:
    test_embed
msg329900 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-11-14 10:41
I merged https://github.com/python/cpython/pull/10539
msg329901 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-11-14 11:02
macOS buildbots are back to green.

Thanks Pablo for creating the issue!

I forgot the subtle differences on Py_HasFileSystemDefaultEncoding on Python 3.7... Python 3.8 has a more "portable" behavior now.
History
Date User Action Args
2018-11-14 11:02:17vstinnersetstatus: open -> closed
resolution: fixed
messages: + msg329901

stage: needs patch -> resolved
2018-11-14 10:41:55vstinnersetmessages: + msg329900
2018-11-14 10:24:53vstinnersettitle: test_embed fails on MacOS buildbots -> [3.7] test_embed fails on MacOS buildbots
2018-11-14 02:38:48pablogsalsettype: behavior
stage: needs patch
2018-11-14 02:38:37pablogsalcreate