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

This commit is contained in:
Nice Zombies 2024-05-28 12:13:01 +02:00 committed by GitHub
parent ab9b605efa
commit 09a85eaa4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 317 additions and 270 deletions

View file

@ -1010,6 +1010,8 @@ 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.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)