Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a25be07

Browse files
committed
Issue #9644: Add a test on os.statvfs() for the PEP 383
2 parents a821f82 + e4110dc commit a25be07

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lib/test/test_os.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,6 +1342,15 @@ def test_open(self):
13421342
f = open(os.path.join(self.dir, fn), 'rb')
13431343
f.close()
13441344

1345+
@unittest.skipUnless(hasattr(os, 'statvfs'),
1346+
"need os.statvfs()")
1347+
def test_statvfs(self):
1348+
# issue #9645
1349+
for fn in self.unicodefn:
1350+
# should not fail with file not found error
1351+
fullname = os.path.join(self.dir, fn)
1352+
os.statvfs(fullname)
1353+
13451354
def test_stat(self):
13461355
for fn in self.unicodefn:
13471356
os.stat(os.path.join(self.dir, fn))

0 commit comments

Comments
 (0)