mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +00:00
bpo-45019: Clean up the frozen __hello__ module. (gh-28374)
Here's one more small cleanup that should have been in PR gh-28319. We eliminate stdout side-effects from importing the frozen __hello__ module, and update tests accordingly. We also move the module's source file into Lib/ from Toos/freeze/flag.py. https://bugs.python.org/issue45019
This commit is contained in:
parent
d081eab7df
commit
3814e2036d
12 changed files with 76 additions and 50 deletions
|
@ -82,9 +82,9 @@ FROZEN = [
|
|||
'stat',
|
||||
]),
|
||||
('Test module', [
|
||||
'hello : __hello__ = ' + os.path.join(TOOLS_DIR, 'freeze', 'flag.py'),
|
||||
'hello : <__phello__>',
|
||||
'hello : __phello__.spam',
|
||||
'__hello__',
|
||||
'__hello__ : <__phello__>',
|
||||
'__hello__ : __phello__.spam',
|
||||
]),
|
||||
]
|
||||
ESSENTIAL = {
|
||||
|
@ -578,7 +578,7 @@ def regen_pcbuild(modules):
|
|||
for src in _iter_sources(modules):
|
||||
# For now we only require the essential frozen modules on Windows.
|
||||
# See bpo-45186 and bpo-45188.
|
||||
if src.id not in ESSENTIAL and src.id != 'hello':
|
||||
if src.id not in ESSENTIAL and src.id != '__hello__':
|
||||
continue
|
||||
pyfile = relpath_for_windows_display(src.pyfile, ROOT_DIR)
|
||||
header = relpath_for_windows_display(src.frozenfile, ROOT_DIR)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue