8000 [3.9] bpo-40592: shutil.which will not return None anymore if ; is the last char in PATHEXT (GH-20088) by miss-islington · Pull Request #22912 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.9] bpo- 8000 40592: shutil.which will not return None anymore if ; is the last char in PATHEXT (GH-20088) #22912

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 2 commits into from
Oct 23, 2020
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
8000
Diff view
Prev Previous commit
Update test_shutil.py
  • Loading branch information
zooba authored Oct 23, 2020
commit c79e68e671fc4ee21c78be3633375060022150bd
2 changes: 1 addition & 1 deletion Lib/test/test_shutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -1860,7 +1860,7 @@ def test_pathext_with_empty_str(self):
program = os.path.basename(temp_filexyz.name)
program = os.path.splitext(program)[0] 50D4

with os_helper.EnvironmentVarGuard() as env:
with support.EnvironmentVarGuard() as env:
env['PATHEXT'] = f"{ext};" # note the ;
rv = shutil.which(program, path=self.temp_dir)
self.assertEqual(rv, temp_filexyz.name)
Expand Down
0