diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-06-11 06:22:31 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-06-11 06:22:31 (GMT) |
commit | f90ae20354ceb501f0ba0b6459df17f1a8005a47 (patch) | |
tree | f9aae742cfa33ba10af2ed8152aff802430f626c /Lib/test/test_os.py | |
parent | 7981ce576c719e291dc901a3463e725b6be3c50e (diff) | |
download | cpython-f90ae20354ceb501f0ba0b6459df17f1a8005a47.zip cpython-f90ae20354ceb501f0ba0b6459df17f1a8005a47.tar.gz cpython-f90ae20354ceb501f0ba0b6459df17f1a8005a47.tar.bz2 |
Patch #488073: AtheOS port.
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r-- | Lib/test/test_os.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 12c016b..735d4cb 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -139,7 +139,13 @@ class StatAttributeTests(unittest.TestCase): return import statvfs - result = os.statvfs(self.fname) + try: + result = os.statvfs(self.fname) + except OSError, e: + # On AtheOS, glibc always returns ENOSYS + import errno + if e.errno == errno.ENOSYS: + return # Make sure direct access works self.assertEquals(result.f_bfree, result[statvfs.F_BFREE]) |