FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-45020: Add -X frozen_modules=[on|off] to explicitly control use of frozen modules. by ericsnowcurrently · Pull Request #28320 · python/cpython · GitHub

Repository navigation

Merged
Changes from 1 commit
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
ac7ff4f
Add the -X frozen_modules CLI option and PyConfig.use_frozen_modules.
ericsnowcurrently Aug 31, 2021
7d2a470
Ignore frozen modules depending on "-X frozen_modules".
ericsnowcurrently Aug 31, 2021
aacaf24
Explicitly control PyConfig.use_frozen_modules during tests.
ericsnowcurrently Sep 1, 2021
5a6e40c
Factor out is_essential_frozen_module().
ericsnowcurrently Sep 13, 2021
4da6302
Treat __main__ as an essential frozen module.
ericsnowcurrently Sep 7, 2021
26469e5
Look up $_PYTHONTESTFROZENMODULES using getenv() instead of in os.env…
ericsnowcurrently Sep 7, 2021
f274b1c
Add zipimport to the list of essential frozen modules.
ericsnowcurrently Sep 7, 2021
6881cb8
Flip around the arg to the "frozen_modules" test helper.
ericsnowcurrently Sep 8, 2021
785addf
Disable frozen modules if $_PYTHONTESTFROZENMODULES is 0.
ericsnowcurrently Sep 8, 2021
a8cb984
Add the "usefrozen" arg to CleanImport.__init__().
ericsnowcurrently Sep 8, 2021
6d9d469
Ignore decode errors in find_frozen().
ericsnowcurrently Sep 8, 2021
df19f79
Fix test_ctypes.
ericsnowcurrently Sep 8, 2021
abfef0b
Ensure we get the frozen module.
ericsnowcurrently Sep 13, 2021
e0258cf
Fix docstrings for the import test helpers.
ericsnowcurrently Sep 13, 2021
0fd66d4
Add a NEWS entry.
ericsnowcurrently Aug 31, 2021
30e8cd1
Remember the stdlib dir during startup (adding PyConfig.stdlib_dir).
ericsnowcurrently Jun 12, 2021
1a83ef6
Add _Py_GetMainConfig().
ericsnowcurrently Aug 31, 2021
3b57bca
Let _Py_GetStdlibDir() fall back to a config.
ericsnowcurrently Aug 31, 2021
b45e5f7
Add _PyConfig_InitImportConfig().
ericsnowcurrently Aug 31, 2021
2298dc0
Identify whether or not the executable is running installed (adding _…
ericsnowcurrently Aug 31, 2021
2b67c44
Default to "off" if in development.
ericsnowcurrently Aug 31, 2021
0933e4d
Add a NEWS entry.
ericsnowcurrently Aug 31, 2021
4823ad6
Fix test_embed for PyConfig.stdlib_dir.
ericsnowcurrently Sep 7, 2021
0e5c617
In _Py_GetStdlibDir(), treat "" as though it were NULL.
ericsnowcurrently Sep 7, 2021
d427bae
Fix test_embed for "Default to "off" if in development.".
ericsnowcurrently Sep 7, 2021
f6bd2fd
Fix test_cmd_line_script for "Default to "off" if in development.".
ericsnowcurrently Sep 7, 2021
965c7fe
_Py_IsInstalled -> _Py_IsDevelopmentEnv.
ericsnowcurrently Sep 7, 2021
4f49adc
Stop using the frozen helper in test_cmd_line_script.
ericsnowcurrently Sep 7, 2021
5297edc
Allow for a .exe suffix on the executable.
ericsnowcurrently Sep 9, 2021
2b6f978
Drop _Py_IsDevelopmentEnv().
ericsnowcurrently Sep 10, 2021
dc2aa34
Drop -_Py_GetStdlibDir() and PyConfig.stdlib_dir.
ericsnowcurrently Sep 10, 2021
218ba84
Default to "-X frozen_modules=off" if built with --with-debug.
ericsnowcurrently Sep 10, 2021
81b66c4
Fix test_embed.
ericsnowcurrently Sep 10, 2021
8a0e2d6
Fix the ASAN job.
ericsnowcurrently Sep 11, 2021
015035d
Fix the docs.
ericsnowcurrently Sep 13, 2021
7e2ce41
Drop unused changes.
ericsnowcurrently Sep 13, 2021
b73486a
Fix the Windows CI jobs.
ericsnowcurrently Sep 13, 2021
fc2123b
Fix test_embed on non-debug builds.
ericsnowcurrently Sep 13, 2021
c3ed104
Fix test_embed on non-debug builds (on Windows).
ericsnowcurrently Sep 14, 2021
9b110fd
Drop parse_env_var_flag().
ericsnowcurrently Sep 14, 2021
9df64c1
Don't use env var _PYTHONTESTFROZENMODULES when running _testembed.
ericsnowcurrently Sep 14, 2021
ccd468e
Do not use an env var to override PyConfig.use_frozen_modules.
ericsnowcurrently Sep 14, 2021
5bc6730
For now, always default to "-X frozen_modules=off".
ericsnowcurrently Sep 14, 2021
f50476c
Change PyConfig.use_frozen_modules from bool to int.
ericsnowcurrently Sep 14, 2021
0dcdb44
Fix use of _PyConfig_InitImportConfig().
ericsnowcurrently Sep 14, 2021
2ec9909
Drop a superfluous comment.
ericsnowcurrently Sep 14, 2021
80d8fcd
Fix a typo.
ericsnowcurrently Sep 14, 2021
aff01e6
Simplify a comment.
ericsnowcurrently Sep 14, 2021
7476d65
Simplify use_frozen().
ericsnowcurrently Sep 14, 2021
e3e5744
Fix a comment.
ericsnowcurrently Sep 14, 2021
669beac
Collapse some lines.
ericsnowcurrently Sep 14, 2021
c644012
Drop _Py_GetMainConfig().
ericsnowcurrently Sep 14, 2021
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
Prev Previous commit
Next Next commit
Fix test_ctypes.
  • Loading branch information
ericsnowcurrently committed Sep 13, 2021
commit df19f79627966c5ef13f18f67fbc433b4fcfafd3
3 changes: 2 additions & 1 deletion Lib/ctypes/test/test_values.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ class struct_frozen(Structure):
else:
self.assertIsNone(spec.submodule_search_locations)

expected = imp._frozen_module_names()
with import_helper.frozen_modules():
expected = imp._frozen_module_names()
self.maxDiff = None
self.assertEqual(modules, expected, "PyImport_FrozenModules example "
"in Doc/library/ctypes.rst may be out of date")
Expand Down

Back | FazBrowse Home | New Git URL