diff options
author | Giuseppe Scrivano <gscrivano@gnu.org> | 2017-12-14 22:46:46 (GMT) |
---|---|---|
committer | Fred Drake <fred@fdrake.net> | 2017-12-14 22:46:46 (GMT) |
commit | 96a5e50a5de3683b2afd6d680c7ecc4b525986f6 (patch) | |
tree | f4adb6717deabda9d44a447ce2aa6edc5ea3bb6b /Lib/test/test_os.py | |
parent | 2b5fd1e9ca9318673989e6ccac2c8acadc3809cd (diff) | |
download | cpython-96a5e50a5de3683b2afd6d680c7ecc4b525986f6.zip cpython-96a5e50a5de3683b2afd6d680c7ecc4b525986f6.tar.gz cpython-96a5e50a5de3683b2afd6d680c7ecc4b525986f6.tar.bz2 |
bpo-32143: add f_fsid to os.statvfs() (#4571)
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r-- | Lib/test/test_os.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 2241256..f235f80 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 |