[Python-checkins] cpython (merge 3.2 -> 3.3): Issue #9644: Add a test on os.statvfs() for the PEP 383
victor.stinner
python-checkins at python.org
Tue Jan 1 23:13:19 CET 2013
http://hg.python.org/cpython/rev/b0cc0b9e2472
changeset: 81208:b0cc0b9e2472
branch: 3.3
parent: 81205:f580342b63d8
parent: 81207:479fca0adbf6
user: Victor Stinner <victor.stinner at gmail.com>
date: Tue Jan 01 23:11:21 2013 +0100
summary:
Issue #9644: Add a test on os.statvfs() for the PEP 383
files:
Lib/test/test_os.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -1342,6 +1342,15 @@
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))
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list