8000 gh-89745: Avoid exact match when comparing program_name in test_embed on Windows by neonene · Pull Request #93888 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-89745: Avoid exact match when comparing program_name in test_embed on Windows #93888

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 17, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
raw string
  • Loading branch information
neonene authored Jun 16, 2022
commit ce853e4ba9b3b5d82d43b7937a64f931a56a742f
2 changes: 1 addition & 1 deletion Lib/test/test_embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ def check_pre_config(self, configs, expected):
def check_config(self, configs, expected):
config = dict(configs['config'])
if MS_WINDOWS and (value := config.get('program_name')):
ptn = '_d.exe$' if debug_build(sys.executable) else '.exe$'
ptn = r'_d\.exe$' if debug_build(sys.executable) else r'\.exe$'
config['program_name'] = re.sub(ptn, '', value, 1, re.I)
for key, value in list(expected.items()):
if value is self.IGNORE_CONFIG:
Expand Down
0