summaryrefslogtreecommitdiff
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2012-02-06 19:54:48 +0100
committerCharles-François Natali <neologix@free.fr>2012-02-06 19:54:48 +0100
commit77940902512c85e2d09dd5bd913084dc547881ff (patch)
tree8bf5109d39f6439057c837ad66e3e6347217dd4e /Lib/test/test_os.py
parent9878b63c7c70b33ea21cd06a2c30ca1344962f02 (diff)
downloadcpython-git-77940902512c85e2d09dd5bd913084dc547881ff.tar.gz
Following Nick's suggestion, rename posix.fdlistdir() to posix.flistdir(), to
be consistent with other functions accepting file descriptors (fdlistdir() was added in 3.3, so hasn't been released yet).
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 7f955d1e90..8b07c77346 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -611,8 +611,8 @@ class FwalkTests(WalkTests):
for root, dirs, files, rootfd in os.fwalk(*args):
# check that the FD is valid
os.fstat(rootfd)
- # check that fdlistdir() returns consistent information
- self.assertEqual(set(os.fdlistdir(rootfd)), set(dirs) | set(files))
+ # check that flistdir() returns consistent information
+ self.assertEqual(set(os.flistdir(rootfd)), set(dirs) | set(files))
def test_fd_leak(self):
# Since we're opening a lot of FDs, we must be careful to avoid leaks: