summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-06-24 10:55:33 (GMT)
committerGeorg Brandl <georg@python.org>2012-06-24 10:55:33 (GMT)
commit306336bcdaf886c10df9c1b46886d5f0cddcaa69 (patch)
tree2f866c5adddc259acf2fb27fe8fc5d589f9d5d7a /Lib/test/test_os.py
parent8ccadaafe637d265a1e286e0261e3231ebcc678d (diff)
downloadcpython-306336bcdaf886c10df9c1b46886d5f0cddcaa69.zip
cpython-306336bcdaf886c10df9c1b46886d5f0cddcaa69.tar.gz
cpython-306336bcdaf886c10df9c1b46886d5f0cddcaa69.tar.bz2
Closes #15161: add support for giving path as a fd for truncate() and pathconf().
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 654dd23..62a7dad 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -1084,10 +1084,12 @@ class TestInvalidFD(unittest.TestCase):
def test_fpathconf(self):
if hasattr(os, "fpathconf"):
+ self.check(os.pathconf, "PC_NAME_MAX")
self.check(os.fpathconf, "PC_NAME_MAX")
def test_ftruncate(self):
if hasattr(os, "ftruncate"):
+ self.check(os.truncate, 0)
self.check(os.ftruncate, 0)
def test_lseek(self):