diff options
author | Barney Gale <barney.gale@gmail.com> | 2024-03-17 17:09:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-17 17:09:35 +0000 |
commit | 0634201f5391242524dbb5225de37f81a2cc1826 (patch) | |
tree | a72c842a1dcab241fd7265cb86b9a8c7ee4a11e8 /Lib/test/test_pathlib/test_pathlib_abc.py | |
parent | 1cf03010865c66c2c3286ffdafd55e7ce2d97444 (diff) | |
download | cpython-0634201f5391242524dbb5225de37f81a2cc1826.tar.gz cpython-0634201f5391242524dbb5225de37f81a2cc1826.zip |
GH-116377: Stop raising `ValueError` from `glob.translate()`. (#116378)
Stop raising `ValueError` from `glob.translate()` when a `**` sub-string
appears in a non-recursive pattern segment. This matches `glob.glob()`
behaviour.
Diffstat (limited to 'Lib/test/test_pathlib/test_pathlib_abc.py')
-rw-r--r-- | Lib/test/test_pathlib/test_pathlib_abc.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/test/test_pathlib/test_pathlib_abc.py b/Lib/test/test_pathlib/test_pathlib_abc.py index fb467a015a8..840fb903fd5 100644 --- a/Lib/test/test_pathlib/test_pathlib_abc.py +++ b/Lib/test/test_pathlib/test_pathlib_abc.py @@ -512,8 +512,6 @@ class DummyPurePathTest(unittest.TestCase): self.assertFalse(P('a/b/c.py').full_match('**/a/b/c./**')) self.assertFalse(P('a/b/c.py').full_match('/a/b/c.py/**')) self.assertFalse(P('a/b/c.py').full_match('/**/a/b/c.py')) - self.assertRaises(ValueError, P('a').full_match, '**a/b/c') - self.assertRaises(ValueError, P('a').full_match, 'a/b/c**') # Case-sensitive flag self.assertFalse(P('A.py').full_match('a.PY', case_sensitive=True)) self.assertTrue(P('A.py').full_match('a.PY', case_sensitive=False)) |