From: Victor Stinner Date: Fri, 11 Oct 2013 23:33:54 +0000 (+0200) Subject: test_os: report tests as skipped when os.statvfs() fails with ENOSYS X-Git-Tag: v3.4.0a4~173^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=370cb253071b4f5d1486114cdda1a95ef0b6d9bb;p=thirdparty%2FPython%2Fcpython.git test_os: report tests as skipped when os.statvfs() fails with ENOSYS --- diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index ab44d011e5e8..f1d652c9a584 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -281,7 +281,7 @@ class StatAttributeTests(unittest.TestCase): except OSError as e: # On AtheOS, glibc always returns ENOSYS if e.errno == errno.ENOSYS: - return + self.skipTest('os.statvfs() failed with ENOSYS') # Make sure direct access works self.assertEqual(result.f_bfree, result[3]) @@ -326,7 +326,8 @@ class StatAttributeTests(unittest.TestCase): except OSError as e: # On AtheOS, glibc always returns ENOSYS if e.errno == errno.ENOSYS: - return + self.skipTest('os.statvfs() failed with ENOSYS') + p = pickle.dumps(result) self.assertIn(b'\x03cos\nstatvfs_result\n', p) unpickled = pickle.loads(p)