(Merge 3.3) Issue #9644: Add a test on os.statvfs() for the PEP 383

This commit is contained in:
Victor Stinner 2013-01-01 23:17:22 +01:00
commit 67eb8df902

View file

@ -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))