From aeb9c3498a97701b93f0515dbb89bd87bfcfa857 Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Thu, 6 Jan 2022 10:51:51 -0700 Subject: [PATCH 1/2] Do not ever expect "use_frozen_modules" to be -1. --- Lib/test/test_embed.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py index 879952413374ec..dd43669ba96741 100644 --- a/Lib/test/test_embed.py +++ b/Lib/test/test_embed.py @@ -1247,8 +1247,6 @@ def test_init_setpythonhome(self): 'stdlib_dir': stdlib, } self.default_program_name(config) - if not config['executable']: - config['use_frozen_modules'] = -1 env = {'TESTHOME': home, 'PYTHONPATH': paths_str} self.check_all_configs("test_init_setpythonhome", config, api=API_COMPAT, env=env) From 0513fe02187ca5585e72ae31ab7cfc69829f62ae Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Thu, 6 Jan 2022 10:54:22 -0700 Subject: [PATCH 2/2] Add a NEWS entry. --- .../Core and Builtins/2022-01-06-10-54-07.bpo-46263.60dRZb.rst | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Core and Builtins/2022-01-06-10-54-07.bpo-46263.60dRZb.rst diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-01-06-10-54-07.bpo-46263.60dRZb.rst b/Misc/NEWS.d/next/Core and Builtins/2022-01-06-10-54-07.bpo-46263.60dRZb.rst new file mode 100644 index 00000000000000..fdcfe50a84aa13 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2022-01-06-10-54-07.bpo-46263.60dRZb.rst @@ -0,0 +1,2 @@ +We always expect the "use_frozen_modules" config to be set, now that +getpath.c was rewritten in pure Python and the logic improved.