mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
gh-118263: Add additional arguments to path_t (Argument Clinic type) in posixmodule (GH-118355)
This commit is contained in:
parent
f0ed1863bd
commit
96b392df30
7 changed files with 390 additions and 360 deletions
|
@ -1129,6 +1129,10 @@ class TestNtpath(NtpathTestCase):
|
|||
# There are fast paths of these functions implemented in posixmodule.c.
|
||||
# Confirm that they are being used, and not the Python fallbacks in
|
||||
# genericpath.py.
|
||||
self.assertTrue(os.path.splitroot is nt._path_splitroot_ex)
|
||||
self.assertFalse(inspect.isfunction(os.path.splitroot))
|
||||
self.assertTrue(os.path.normpath is nt._path_normpath)
|
||||
self.assertFalse(inspect.isfunction(os.path.normpath))
|
||||
self.assertTrue(os.path.isdir is nt._path_isdir)
|
||||
self.assertFalse(inspect.isfunction(os.path.isdir))
|
||||
self.assertTrue(os.path.isfile is nt._path_isfile)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue