summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_posix.py
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2012-02-06 18:54:48 (GMT)
committerCharles-François Natali <neologix@free.fr>2012-02-06 18:54:48 (GMT)
commit77940902512c85e2d09dd5bd913084dc547881ff (patch)
tree8bf5109d39f6439057c837ad66e3e6347217dd4e /Lib/test/test_posix.py
parent9878b63c7c70b33ea21cd06a2c30ca1344962f02 (diff)
downloadcpython-77940902512c85e2d09dd5bd913084dc547881ff.zip
cpython-77940902512c85e2d09dd5bd913084dc547881ff.tar.gz
cpython-77940902512c85e2d09dd5bd913084dc547881ff.tar.bz2
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_posix.py')
-rw-r--r--Lib/test/test_posix.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index f8c6baa..c3dfffb 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -451,18 +451,18 @@ class PosixTester(unittest.TestCase):
if hasattr(posix, 'listdir'):
self.assertTrue(support.TESTFN in posix.listdir())
- @unittest.skipUnless(hasattr(posix, 'fdlistdir'), "test needs posix.fdlistdir()")
- def test_fdlistdir(self):
+ @unittest.skipUnless(hasattr(posix, 'flistdir'), "test needs posix.flistdir()")
+ def test_flistdir(self):
f = posix.open(posix.getcwd(), posix.O_RDONLY)
self.addCleanup(posix.close, f)
self.assertEqual(
sorted(posix.listdir('.')),
- sorted(posix.fdlistdir(f))
+ sorted(posix.flistdir(f))
)
# Check that the fd offset was reset (issue #13739)
self.assertEqual(
sorted(posix.listdir('.')),
- sorted(posix.fdlistdir(f))
+ sorted(posix.flistdir(f))
)
def test_access(self):