Skip to content

Conversation

@tonybaloney
Copy link
Contributor

@tonybaloney tonybaloney commented Dec 14, 2018

See https://bugs.python.org/issue35488

pathlib Path.match does not support glob-style ** recursive pattern matching.

Add a test to verify this behaviour as unsupported. This will also follow a documentation PR.

See also https://bugs.python.org/issue29249

https://bugs.python.org/issue35488

self.assertTrue(P('/a/b.py').match('/a/*.py'))
self.assertFalse(P('/ab.py').match('/a/*.py'))
self.assertFalse(P('/a/b/c.py').match('/a/*.py'))
# Multi-part glob-style pattern
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Multi-part glob-style pattern
# Multi-part glob-style pattern.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

None of the other single-line comments in this file have periods? I can update all of them or just this one?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can update all of them since this isn't code and it's easy to see what changed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@brettcannon 👍 done in 0e2800a

@brettcannon
Copy link
Member

@tonybaloney can you add a news entry for your changes? You can use https://blurb-it.herokuapp.com/ to do it entirely in the browser. Otherwise LGTM!

@brettcannon brettcannon self-assigned this Jan 4, 2019
@tonybaloney
Copy link
Contributor Author

@brettcannon done!

@brettcannon brettcannon merged commit 83da926 into python:master Jan 6, 2019
@brettcannon
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Tests in the Lib/test dir

5 participants