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.
This commit is contained in:
Barney Gale 2024-05-14 21:14:07 +01:00 committed by GitHub
parent fbe6a0988f
commit 7d8725ac6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 9 deletions

View file

@ -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):