Skip to content

Commit b0d9f7d

Browse files
akinomyogayedayak
andauthored
!fixup test(rsync,scp): test quoted spaces
Co-authored-by: Yedaya Katsman <yedaya.ka@gmail.com>
1 parent 0b4420e commit b0d9f7d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/t/test_rsync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def test_remote_path_with_spaces(self, bash):
7474
or completion == r"\\\ in\\\ filename.txt"
7575
)
7676

77-
@pytest.mark.complete("rsync -na spaced\\ ", cwd="scp")
77+
@pytest.mark.complete(r"rsync -na spaced\ ", cwd="scp")
7878
def test_local_path_with_spaces(self, completion):
7979
"""This function tests xfunc _comp_xfunc_scp_compgen_local_files, which
8080
is defined in completions/ssh, through the rsync interface. We reuse

test/t/test_scp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def test_local_path_mark_1(self, bash, tmpdir_mkfifo):
213213

214214
@pytest.mark.complete("scp spa", cwd="scp")
215215
def test_local_path_with_spaces_1(self, completion):
216-
assert completion == "ced\\ \\ conf"
216+
assert completion == r"ced\ \ conf"
217217

218218
@pytest.mark.complete("scp spaced\\ ", cwd="scp")
219219
def test_local_path_with_spaces_2(self, completion):

0 commit comments

Comments
 (0)