bpo-32143: add f_fsid to os.statvfs() (#4571)

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2017-12-14 23:46:46 +01:00 committed by Fred Drake
parent 2b5fd1e9ca
commit 96a5e50a5d
4 changed files with 12 additions and 1 deletions

View file

@ -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