diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index ec7b3efb06b..f03dbef59ad 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -1342,6 +1342,15 @@ def test_open(self): 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))