We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
/dev/null
1 parent 8d6558c commit 37f9062Copy full SHA for 37f9062
tests/unit/scp_test.py
@@ -2,6 +2,7 @@
2
3
"""Tests suite for scp."""
4
5
+import os
6
import uuid
7
8
import pytest
@@ -69,8 +70,8 @@ def path_to_non_existent_src_file(tmp_path):
69
70
return path
71
72
-def test_get_missing_src(dst_path, path_to_non_existent_src_file, ssh_scp):
73
+def test_get_missing_src(path_to_non_existent_src_file, ssh_scp):
74
"""Check that SCP file download raises exception if the remote file is missing."""
75
error_msg = '^Error receiving information about file:'
76
with pytest.raises(LibsshSCPException, match=error_msg):
- ssh_scp.get(str(path_to_non_existent_src_file), str(dst_path))
77
+ ssh_scp.get(str(path_to_non_existent_src_file), os.devnull)
0 commit comments