diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-10-10 13:50:32 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@python.org> | 2019-10-10 13:50:32 (GMT) |
commit | 8ab11c433a81b6c7ef84a66e36fbe199915e2ff6 (patch) | |
tree | 66ac05ab6553ed808330107d388c54e4f424b21c /Lib/test | |
parent | baf8a9b03a56ce1ee2284763b267ff56ab4507fe (diff) | |
download | cpython-8ab11c433a81b6c7ef84a66e36fbe199915e2ff6.zip cpython-8ab11c433a81b6c7ef84a66e36fbe199915e2ff6.tar.gz cpython-8ab11c433a81b6c7ef84a66e36fbe199915e2ff6.tar.bz2 |
bpo-38109: Add missing constants to Lib/stat.py (GH-16665) (GH-16690)
Add missing stat.S_IFDOOR, stat.S_IFPORT, stat.S_IFWHT,
stat.S_ISDOOR, stat.S_ISPORT, and stat.S_ISWHT values to
the Python implementation of the stat module.
(cherry picked from commit 7bb14316b8ceddb813f31040a299af94a57ab339)
Co-authored-by: Ronan Lamy <ronan.lamy@gmail.com>
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_stat.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Lib/test/test_stat.py b/Lib/test/test_stat.py index 17443be..be01db2 100644 --- a/Lib/test/test_stat.py +++ b/Lib/test/test_stat.py @@ -16,10 +16,10 @@ class TestFilemode: 'UF_IMMUTABLE', 'UF_NODUMP', 'UF_NOUNLINK', 'UF_OPAQUE'} formats = {'S_IFBLK', 'S_IFCHR', 'S_IFDIR', 'S_IFIFO', 'S_IFLNK', - 'S_IFREG', 'S_IFSOCK'} + 'S_IFREG', 'S_IFSOCK', 'S_IFDOOR', 'S_IFPORT', 'S_IFWHT'} format_funcs = {'S_ISBLK', 'S_ISCHR', 'S_ISDIR', 'S_ISFIFO', 'S_ISLNK', - 'S_ISREG', 'S_ISSOCK'} + 'S_ISREG', 'S_ISSOCK', 'S_ISDOOR', 'S_ISPORT', 'S_ISWHT'} stat_struct = { 'ST_MODE': 0, @@ -231,10 +231,6 @@ class TestFilemode: class TestFilemodeCStat(TestFilemode, unittest.TestCase): statmod = c_stat - formats = TestFilemode.formats | {'S_IFDOOR', 'S_IFPORT', 'S_IFWHT'} - format_funcs = TestFilemode.format_funcs | {'S_ISDOOR', 'S_ISPORT', - 'S_ISWHT'} - class TestFilemodePyStat(TestFilemode, unittest.TestCase): statmod = py_stat |