diff options
| author | Anton Samarchyan <anton.samarchyan@savoirfairelinux.com> | 2016-12-28 15:20:24 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-12-28 19:14:58 -0500 |
| commit | 5cf4894836bd537161df467890d9b986678a7937 (patch) | |
| tree | 0ae370e4ad23c00e02943814daa2e99fdd0aaaec /tests/utils_tests/test_archive.py | |
| parent | 4579c3f6b8d3a5ebd6c570836cd0552892eb0d61 (diff) | |
Fixed #27628 -- Fixed unarchiving a file without permission data.
Diffstat (limited to 'tests/utils_tests/test_archive.py')
| -rw-r--r-- | tests/utils_tests/test_archive.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/utils_tests/test_archive.py b/tests/utils_tests/test_archive.py index 42f445ce9c..b207a1290a 100644 --- a/tests/utils_tests/test_archive.py +++ b/tests/utils_tests/test_archive.py @@ -51,6 +51,10 @@ class ArchiveTester(object): filepath = os.path.join(self.tmpdir, 'executable') # The file has executable permission. self.assertTrue(os.stat(filepath).st_mode & stat.S_IXOTH) + filepath = os.path.join(self.tmpdir, 'no_permissions') + # The file is readable even though it doesn't have permission data in + # the archive. + self.assertTrue(os.stat(filepath).st_mode & stat.S_IROTH) def test_extract_function_with_leadpath(self): extract(self.archive_lead_path, self.tmpdir) |
