]> granicus.if.org Git - python/commit
bpo-32652: Defer pymain_set_global_config() call (#5303)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 25 Jan 2018 08:18:36 +0000 (09:18 +0100)
committerGitHub <noreply@github.com>
Thu, 25 Jan 2018 08:18:36 +0000 (09:18 +0100)
commit2b822a0bb1de2612c85d8f75e3ce89eda2ac9f68
tree0a1e50226a88d81f177e075ce91eb0499807c57a
parentcab0b2b053970982b760048acc3046363615a8dd
bpo-32652: Defer pymain_set_global_config() call (#5303)

In Py_Main(), don't call pymain_set_global_config() early: only call
it when the whole configuration has been read.

Add an unit test to prevent future regression.
Lib/test/test_utf8_mode.py
Modules/main.c