gh-118263: Add additional arguments to path_t (Argument Clinic type) in posixmodule (GH-118355)

This commit is contained in:
Nice Zombies 2024-05-24 20:04:17 +02:00 committed by GitHub
parent f0ed1863bd
commit 96b392df30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 390 additions and 360 deletions

View file

@ -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)