Matej Cepl 2023-04-27 23:43:26 +00:00 committed by Git OBS Bridge
parent d6d4479296
commit 6a2f407ebc

View File

@ -2066,7 +2066,7 @@ Content-Transfer-Encoding: 8bit
+ path = pathlib.Path(os.path.normpath(self.destdir / name))
+ self.assertIn(path, self.expected_paths)
+ self.expected_paths.remove(path)
+ if mode is not None and os_helper.can_chmod():
+ if mode is not None:
+ got = stat.filemode(stat.S_IMODE(path.stat().st_mode))
+ self.assertEqual(got, mode)
+ if type is None and isinstance(name, str) and name.endswith('/'):