]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46263: Do not ever expect "use_frozen_modules" to be -1. (gh-30438)
authorEric Snow <ericsnowcurrently@gmail.com>
Thu, 6 Jan 2022 18:56:13 +0000 (11:56 -0700)
committerGitHub <noreply@github.com>
Thu, 6 Jan 2022 18:56:13 +0000 (11:56 -0700)
The condition is no longer valid.  This should resolve the buildbot failure on FreeBSD.

https://bugs.python.org/issue46263

Lib/test/test_embed.py
Misc/NEWS.d/next/Core and Builtins/2022-01-06-10-54-07.bpo-46263.60dRZb.rst [new file with mode: 0644]

index 879952413374ecf7e8e466802d33b1577b43a6d4..dd43669ba96741fba6c7195821bd7ea20d02401f 100644 (file)
@@ -1247,8 +1247,6 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
             '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)
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 (file)
index 0000000..fdcfe50
--- /dev/null
@@ -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.