diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-01-01 22:11:21 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-01-01 22:11:21 (GMT) |
commit | a25be071034d94d7c9482ea2e149ce0325dc06ce (patch) | |
tree | 5f090ce8ff9a514c98a2b310ba0bad2c65da7899 /Lib | |
parent | a821f82f66260601aa184d5788226dd0c64251a0 (diff) | |
parent | e4110dc11f9e90d3a7fcd8f0a5f9ded344f433c6 (diff) | |
download | cpython-a25be071034d94d7c9482ea2e149ce0325dc06ce.zip cpython-a25be071034d94d7c9482ea2e149ce0325dc06ce.tar.gz cpython-a25be071034d94d7c9482ea2e149ce0325dc06ce.tar.bz2 |
Issue #9644: Add a test on os.statvfs() for the PEP 383
Diffstat (limited to 'Lib')
-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 ec7b3ef..f03dbef 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)) |