◐ Shell
clean mode source ↗

GH-106747: Improve `Path.glob()` expectations in pathlib tests by barneygale · Pull Request #112365 · python/cpython

Add trailing slashes to expected `Path.glob()` results wherever a pattern
has a trailing slash. This matches what `glob.glob()` produces.

Due to another bug (pythonGH-65238) pathlib strips all trailing slashes, so this
change is academic for now.

@barneygale

aisk pushed a commit to aisk/cpython that referenced this pull request

Feb 11, 2024
…ython#112365)

Add trailing slashes to expected `Path.glob()` results wherever a pattern
has a trailing slash. This matches what `glob.glob()` produces.

Due to another bug (pythonGH-65238) pathlib strips all trailing slashes, so this
change is academic for now.

Glyphack pushed a commit to Glyphack/cpython that referenced this pull request

Sep 2, 2024
…ython#112365)

Add trailing slashes to expected `Path.glob()` results wherever a pattern
has a trailing slash. This matches what `glob.glob()` produces.

Due to another bug (pythonGH-65238) pathlib strips all trailing slashes, so this
change is academic for now.