Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0047fa3 commit 87dccbbCopy full SHA for 87dccbb
1 file changed
tests/commands/install_uninstall_test.py
@@ -259,7 +259,10 @@ def _path_without_us():
259
exe = find_executable('pre-commit', _environ=env)
260
while exe:
261
parts = env['PATH'].split(os.pathsep)
262
- after = [x for x in parts if x.lower() != os.path.dirname(exe).lower()]
+ after = [
263
+ x for x in parts
264
+ if x.lower().rstrip(os.sep) != os.path.dirname(exe).lower()
265
+ ]
266
if parts == after:
267
raise AssertionError(exe, parts)
268
env['PATH'] = os.pathsep.join(after)
0 commit comments