[New-bugs-announce] [issue34731] pathlib path.match misshandles multiple `**`

Ronny Pfannschmidt report at bugs.python.org
Wed Sep 19 01:34:46 EDT 2018


New submission from Ronny Pfannschmidt <bugs.python.org at ronnypfannschmidt.de>:

when porting parts of pytest to pathlib we noted that `path.match` does not quite match normal fnmatch for usages of `**`

i believe this is related to always splitting the patter completely and not handling `**` in that case

Bruno wrote https://github.com/pytest-dev/pytest/pull/3980/files#diff-63fc5ed688925b327a5af20405bf4b09R19 as a workaround

----------
components: Library (Lib)
messages: 325701
nosy: Ronny.Pfannschmidt
priority: normal
severity: normal
status: open
title: pathlib path.match misshandles multiple `**`

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34731>
_______________________________________


More information about the New-bugs-announce mailing list