mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-34333: Fix %-formatting in Path.with_suffix() (GH-8663)
This commit is contained in:
parent
077059e0f0
commit
423d05f6f5
3 changed files with 5 additions and 1 deletions
|
@ -577,6 +577,8 @@ class _BasePurePathTest(object):
|
|||
self.assertRaises(ValueError, P('a/b').with_suffix, '.c/.d')
|
||||
self.assertRaises(ValueError, P('a/b').with_suffix, './.d')
|
||||
self.assertRaises(ValueError, P('a/b').with_suffix, '.d/.')
|
||||
self.assertRaises(ValueError, P('a/b').with_suffix,
|
||||
(self.flavour.sep, 'd'))
|
||||
|
||||
def test_relative_to_common(self):
|
||||
P = self.cls
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue