depot/third_party/nixpkgs/pkgs/development/python-modules/asyncssh/fix-sftp-chmod-test-nixos.patch
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

15 lines
531 B
Diff

diff --git a/tests/test_sftp.py b/tests/test_sftp.py
index d94379f..4ee46a9 100644
--- a/tests/test_sftp.py
+++ b/tests/test_sftp.py
@@ -955,8 +955,8 @@ class _TestSFTP(_CheckSFTP):
try:
self._create_file('file')
- await sftp.chmod('file', 0o4321)
- self.assertEqual(stat.S_IMODE(os.stat('file').st_mode), 0o4321)
+ await sftp.chmod('file', 0o1234)
+ self.assertEqual(stat.S_IMODE(os.stat('file').st_mode), 0o1234)
finally:
remove('file')