summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-01-01 22:11:21 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-01-01 22:11:21 (GMT)
commita25be071034d94d7c9482ea2e149ce0325dc06ce (patch)
tree5f090ce8ff9a514c98a2b310ba0bad2c65da7899 /Lib
parenta821f82f66260601aa184d5788226dd0c64251a0 (diff)
parente4110dc11f9e90d3a7fcd8f0a5f9ded344f433c6 (diff)
downloadcpython-a25be071034d94d7c9482ea2e149ce0325dc06ce.zip
cpython-a25be071034d94d7c9482ea2e149ce0325dc06ce.tar.gz
cpython-a25be071034d94d7c9482ea2e149ce0325dc06ce.tar.bz2
Issue #9644: Add a test on os.statvfs() for the PEP 383
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_os.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index ec7b3ef..f03dbef 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -1342,6 +1342,15 @@ if sys.platform != 'win32':
f = open(os.path.join(self.dir, fn), 'rb')
f.close()
+ @unittest.skipUnless(hasattr(os, 'statvfs'),
+ "need os.statvfs()")
+ def test_statvfs(self):
+ # issue #9645
+ for fn in self.unicodefn:
+ # should not fail with file not found error
+ fullname = os.path.join(self.dir, fn)
+ os.statvfs(fullname)
+
def test_stat(self):
for fn in self.unicodefn:
os.stat(os.path.join(self.dir, fn))