You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Handle non-iterables for ntpath.commonpath #117335
Activity
[-]Raise TypeError for non-iterables for `ntpath.commonpath`[/-][+]Handle non-iterables for `ntpath.commonpath`[/+]serhiy-storchaka commentedon Mar 28, 2024
For reference,
posixpath.commonpath()was changed in #114709. I forget to check also thentpathimplementation. 🤦♂️nineteendo commentedon Mar 28, 2024
Yeah, I saw when your test failed when I changed
posixpath.commonpath().But don't feel too bad, it happens to the best of us.
nineteendo commentedon Mar 28, 2024
Maybe we could create
test_os_path.pyfor common tests betweenntpath&posixpath?That would've probably caught this earlier.
serhiy-storchaka commentedon Mar 28, 2024
Common tests are already defined in
test_genericpath.CommonTest.gh-117335: Handle non-iterables for `ntpath.commonpath` (GH-117336)
Squashed commit of the following:
Squashed commit of the following:
pythongh-117335: Handle non-iterables for `ntpath.commonpath` (python…