mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-32143: add f_fsid to os.statvfs() (#4571)
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
2b5fd1e9ca
commit
96a5e50a5d
4 changed files with 12 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue