Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-35233: test_embed.InitConfigTests: test more config #10541

Merged
merged 2 commits into from Nov 14, 2018

Conversation

@vstinner
Copy link
Member

vstinner commented Nov 14, 2018

  • InitConfigTests now also tests the core configuration variables:

    • base_exec_prefix
    • base_prefix
    • exec_prefix
    • home
    • legacy_windows_fs_encoding
    • legacy_windows_stdio
    • module_search_path_env
    • prefix
  • "_testembed init_from_config" now also tests:

    • argv
    • warnoptions
    • xoptions
  • InitConfigTests: add check_global_config(), check_core_config() and
    check_main_config() subfunctions to cleanup the code. Move also
    constants at the class level (ex: COPY_MAIN_CONFIG).

  • Fix _PyCoreConfig_AsDict(): don't set stdio_encoding twice

  • Use more macros in _PyCoreConfig_AsDict() and
    _PyMainInterpreterConfig_AsDict() to reduce code duplication.

  • Other minor cleanups

https://bugs.python.org/issue35233

* InitConfigTests now also tests the core configuration variables:

  * base_exec_prefix
  * base_prefix
  * exec_prefix
  * home
  * legacy_windows_fs_encoding
  * legacy_windows_stdio
  * module_search_path_env
  * prefix

* "_testembed init_from_config" now also tests:

  * argv
  * warnoptions
  * xoptions

* InitConfigTests: add check_global_config(), check_core_config() and
  check_main_config() subfunctions to cleanup the code. Move also
  constants at the class level (ex: COPY_MAIN_CONFIG).
* Fix _PyCoreConfig_AsDict(): don't set stdio_encoding twice
* Use more macros in _PyCoreConfig_AsDict() and
  _PyMainInterpreterConfig_AsDict() to reduce code duplication.
* Other minor cleanups
@vstinner vstinner merged commit 01de89c into python:master Nov 14, 2018
5 checks passed
5 checks passed
Azure Pipelines PR #20181114.19 succeeded
Details
bedevere/issue-number Issue number 35233 found
Details
bedevere/news "skip news" label found
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@vstinner vstinner deleted the vstinner:init_config_tests branch Nov 14, 2018
vstinner added a commit to vstinner/cpython that referenced this pull request Nov 14, 2018
test_embed.InitConfigTests tests more configuration variables.

Changes:

* InitConfigTests tests more core configuration variables:

  * base_exec_prefix
  * base_prefix
  * exec_prefix
  * home
  * module_search_path_env
  * prefix

* "_testembed init_from_config" tests more variables:

  * argv
  * warnoptions
  * xoptions

* Py_HasFileSystemDefaultEncoding value is no longer tested since it
  depends on the LC_CTYPE locale and the platform.
* InitConfigTests: add check_global_config(), check_core_config() and
  check_main_config() subfunctions to cleanup the code. Move also
  constants at the class level (ex: COPY_MAIN_CONFIG).
* Use more macros in _PyCoreConfig_AsDict() and
  _PyMainInterpreterConfig_AsDict() to reduce code duplication.
* Other minor cleanups.

(cherry picked from commit 01de89c)
vstinner added a commit that referenced this pull request Nov 14, 2018
test_embed.InitConfigTests tests more configuration variables.

Changes:

* InitConfigTests tests more core configuration variables:

  * base_exec_prefix
  * base_prefix
  * exec_prefix
  * home
  * module_search_path_env
  * prefix

* "_testembed init_from_config" tests more variables:

  * argv
  * warnoptions
  * xoptions

* Py_HasFileSystemDefaultEncoding value is no longer tested since it
  depends on the LC_CTYPE locale and the platform.
* InitConfigTests: add check_global_config(), check_core_config() and
  check_main_config() subfunctions to cleanup the code. Move also
  constants at the class level (ex: COPY_MAIN_CONFIG).
* Use more macros in _PyCoreConfig_AsDict() and
  _PyMainInterpreterConfig_AsDict() to reduce code duplication.
* Other minor cleanups.

(cherry picked from commit 01de89c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.