diff options
author | Barney Gale <barney.gale@gmail.com> | 2024-01-05 21:41:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-05 21:41:19 +0000 |
commit | 3c4e972d6d0945a5401377bed25b307a88b19c75 (patch) | |
tree | 80d9cf42eb428a1eeeff91abab7255051b35f4d2 /Lib/test/test_pathlib/test_pathlib_abc.py | |
parent | 99854ce1701ca4d1a0d153e501a29f9eec306ce5 (diff) | |
download | cpython-3c4e972d6d0945a5401377bed25b307a88b19c75.tar.gz cpython-3c4e972d6d0945a5401377bed25b307a88b19c75.zip |
GH-113568: Stop raising auditing events from pathlib ABCs (#113571)
Raise auditing events in `pathlib.Path.glob()`, `rglob()` and `walk()`,
but not in `pathlib._abc.PathBase` methods. Also move generation of a
deprecation warning into `pathlib.Path` so it gets the right stack level.
Diffstat (limited to 'Lib/test/test_pathlib/test_pathlib_abc.py')
-rw-r--r-- | Lib/test/test_pathlib/test_pathlib_abc.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Lib/test/test_pathlib/test_pathlib_abc.py b/Lib/test/test_pathlib/test_pathlib_abc.py index e4a4e81e547..a67235b4da3 100644 --- a/Lib/test/test_pathlib/test_pathlib_abc.py +++ b/Lib/test/test_pathlib/test_pathlib_abc.py @@ -1266,19 +1266,6 @@ class DummyPathTest(DummyPurePathTest): bad_link.symlink_to("bad" * 200) self.assertEqual(sorted(base.glob('**/*')), [bad_link]) - def test_glob_recursive_no_trailing_slash(self): - P = self.cls - p = P(self.base) - with self.assertWarns(FutureWarning): - p.glob('**') - with self.assertWarns(FutureWarning): - p.glob('*/**') - with self.assertWarns(FutureWarning): - p.rglob('**') - with self.assertWarns(FutureWarning): - p.rglob('*/**') - - def test_readlink(self): if not self.can_symlink: self.skipTest("symlinks required") |