mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gh-118263: Add additional arguments to path_t (Argument Clinic type) in posixmodule (GH-119608)
This commit is contained in:
parent
ab9b605efa
commit
09a85eaa4c
7 changed files with 317 additions and 270 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue