summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivano@gnu.org>2017-12-14 23:46:46 +0100
committerFred Drake <fred@fdrake.net>2017-12-14 17:46:46 -0500
commit96a5e50a5de3683b2afd6d680c7ecc4b525986f6 (patch)
treef4adb6717deabda9d44a447ce2aa6edc5ea3bb6b /Lib
parent2b5fd1e9ca9318673989e6ccac2c8acadc3809cd (diff)
downloadcpython-git-96a5e50a5de3683b2afd6d680c7ecc4b525986f6.tar.gz
bpo-32143: add f_fsid to os.statvfs() (#4571)
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_os.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 2241256909..f235f801e0 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -352,6 +352,11 @@ class StatAttributeTests(unittest.TestCase):
for value, member in enumerate(members):
self.assertEqual(getattr(result, 'f_' + member), result[value])
+ self.assertTrue(isinstance(result.f_fsid, int))
+
+ # Test that the size of the tuple doesn't change
+ self.assertEqual(len(result), 10)
+
# Make sure that assignment really fails
try:
result.f_bfree = 1