diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-01-01 22:17:22 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-01-01 22:17:22 (GMT) |
commit | 67eb8df9028e7f255c9cd0138134d85bc3d9e1ab (patch) | |
tree | b90ed3d0f18447dbffa9515cacaf98d69ff15fdd /Lib/test/test_os.py | |
parent | 6e410a2cdb9ddb1fedecce39c57e375ea89b70c5 (diff) | |
parent | a25be071034d94d7c9482ea2e149ce0325dc06ce (diff) | |
download | cpython-67eb8df9028e7f255c9cd0138134d85bc3d9e1ab.zip cpython-67eb8df9028e7f255c9cd0138134d85bc3d9e1ab.tar.gz cpython-67eb8df9028e7f255c9cd0138134d85bc3d9e1ab.tar.bz2 |
(Merge 3.3) Issue #9644: Add a test on os.statvfs() for the PEP 383
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r-- | 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 index d479461..ff39c78 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)) |