Home
last modified time | relevance | path

Searched refs:with_name (Results 1 – 5 of 5) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_pathlib.py545 self.assertEqual(P('a/b').with_name('d.xml'), P('a/d.xml'))
546 self.assertEqual(P('/a/b').with_name('d.xml'), P('/a/d.xml'))
547 self.assertEqual(P('a/b.py').with_name('d.xml'), P('a/d.xml'))
548 self.assertEqual(P('/a/b.py').with_name('d.xml'), P('/a/d.xml'))
549 self.assertEqual(P('a/Dot ending.').with_name('d.xml'), P('a/d.xml'))
550 self.assertEqual(P('/a/Dot ending.').with_name('d.xml'), P('/a/d.xml'))
551 self.assertRaises(ValueError, P('').with_name, 'd.xml')
552 self.assertRaises(ValueError, P('.').with_name, 'd.xml')
553 self.assertRaises(ValueError, P('/').with_name, 'd.xml')
554 self.assertRaises(ValueError, P('a/b').with_name, '')
[all …]
/external/python/cpython3/Doc/library/
Dpathlib.rst542 .. method:: PurePath.with_name(name)
548 >>> p.with_name('setup.py')
551 >>> p.with_name('setup.py')
554 File "/home/antoine/cpython/default/Lib/pathlib.py", line 751, in with_name
/external/python/cpython3/Lib/
Dpathlib.py816 def with_name(self, name): member in PurePath
/external/python/cpython3/Misc/NEWS.d/
D3.5.0a1.rst3097 Disallow the construction of invalid paths using Path.with_name(). Original
5274 Add missing documentation for PurePath.with_name() and
/external/python/cpython3/Misc/
DHISTORY1567 Path.with_name(). Original patch by Antony Lee.
2139 - Issue #20765: Add missing documentation for PurePath.with_name() and