diff options
author | Barney Gale <barney.gale@gmail.com> | 2024-05-14 20:14:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-14 20:14:07 (GMT) |
commit | 7d8725ac6f3304677d71dabdb7c184e98a62d864 (patch) | |
tree | 4c19aee527e9afac150a03db903c0281f5ee9b6a /Lib/test/test_pathlib/test_pathlib.py | |
parent | fbe6a0988ff08aef29c4649527d5d620d77ca4a2 (diff) | |
download | cpython-7d8725ac6f3304677d71dabdb7c184e98a62d864.zip cpython-7d8725ac6f3304677d71dabdb7c184e98a62d864.tar.gz cpython-7d8725ac6f3304677d71dabdb7c184e98a62d864.tar.bz2 |
GH-74033: Drop deprecated `pathlib.Path` keyword arguments (#118793)
Remove support for supplying keyword arguments to `pathlib.Path()`. This
has been deprecated since Python 3.12.
Diffstat (limited to 'Lib/test/test_pathlib/test_pathlib.py')
-rw-r--r-- | Lib/test/test_pathlib/test_pathlib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_pathlib/test_pathlib.py b/Lib/test/test_pathlib/test_pathlib.py index 4fd2aac..3df354e 100644 --- a/Lib/test/test_pathlib/test_pathlib.py +++ b/Lib/test/test_pathlib/test_pathlib.py @@ -1108,8 +1108,8 @@ class PathTest(test_pathlib_abc.DummyPathTest, PurePathTest): self.assertTrue(R.is_mount()) self.assertFalse((R / '\udfff').is_mount()) - def test_passing_kwargs_deprecated(self): - with self.assertWarns(DeprecationWarning): + def test_passing_kwargs_errors(self): + with self.assertRaises(TypeError): self.cls(foo="bar") def setUpWalk(self): |