mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-74033: Fix bug when Path takes and ignores **kwargs (GH-19632)
Fix a bug where `Path` takes and ignores `**kwargs` by adding to `PurePath` class `__init__` method which can take only positional arguments. Automerge-Triggered-By: GH:brettcannon
This commit is contained in:
parent
1bc7a73683
commit
080cb27829
3 changed files with 10 additions and 0 deletions
|
@ -2571,6 +2571,11 @@ class _BasePathTest(object):
|
|||
def test_complex_symlinks_relative_dot_dot(self):
|
||||
self._check_complex_symlinks(os.path.join('dirA', '..'))
|
||||
|
||||
def test_passing_kwargs_deprecated(self):
|
||||
with self.assertWarns(DeprecationWarning):
|
||||
self.cls(foo="bar")
|
||||
|
||||
|
||||
class WalkTests(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue