1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/asyncssh/fix-sftp-chmod-test-nixos.patch
Andrew Dunham 5a0f0005e7 python3Packages.asyncssh: fix build
The test changed from `yield from` to `await`, which broke our patch.
Fix our patch.

Closes #79380
2020-02-06 23:24:27 -08:00

16 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')