mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
bpo-34170: Enhance _PyCoreConfig_Read() (GH-8468)
* Inline cmdline_get_env_flags() into config_read_env_vars(): _PyCoreConfig_Read() now reads much more environment variables like PYTHONVERBOSE. * Allow to override faulthandler and allocator even if dev_mode=1. PYTHONMALLOC is now the priority over PYTHONDEVMODE. * Fix _PyCoreConfig_Copy(): copy also install_signal_handlers, coerce_c_locale and coerce_c_locale_warn * _PyCoreConfig.install_signal_handlers default is now 1: install signals by default * Fix also a compiler warning: don't define _PyPathConfig type twice.
This commit is contained in:
parent
48ed88a93b
commit
ecf411c59e
5 changed files with 97 additions and 77 deletions
|
@ -551,9 +551,7 @@ class CmdLineTest(unittest.TestCase):
|
|||
env = dict(os.environ)
|
||||
env.pop('PYTHONWARNINGS', None)
|
||||
env.pop('PYTHONDEVMODE', None)
|
||||
# Force malloc() to disable the debug hooks which are enabled
|
||||
# by default for Python compiled in debug mode
|
||||
env['PYTHONMALLOC'] = 'malloc'
|
||||
env.pop('PYTHONMALLOC', None)
|
||||
|
||||
if xdev:
|
||||
args = (sys.executable, '-X', 'dev', *args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue