mirror of
https://github.com/python/cpython.git
synced 2025-10-26 19:24:34 +00:00
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:
parent
fbe6a0988f
commit
7d8725ac6f
4 changed files with 5 additions and 9 deletions
|
|
@ -1108,8 +1108,8 @@ def test_is_mount_root(self):
|
|||
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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue