@@ -183,7 +183,13 @@ def test_remote_path_ending_with_backslash(self, bash):
183
183
184
184
@pytest .fixture
185
185
def tmpdir_mkfifo (self , request , bash ):
186
- tmpdir , _ , _ = prepare_fixture_dir (request , files = [], dirs = [])
186
+ # We prepare two files: 1) a named pipe and 2) a regular file ending
187
+ # with the same name but an extra special character "|".
188
+ tmpdir , _ , _ = prepare_fixture_dir (
189
+ request ,
190
+ files = ["local_path_2-pipe|" ],
191
+ dirs = [],
192
+ )
187
193
188
194
# If the system allows creating a named pipe, we create it in a
189
195
# temporary directory and returns the path. We cannot check the
@@ -206,6 +212,13 @@ def test_local_path_mark_1(self, bash, tmpdir_mkfifo):
206
212
)
207
213
assert completion == "pipe"
208
214
215
+ # FIXME: This test currently fails.
216
+ # def test_local_path_mark_2(self, bash, tmpdir_mkfifo):
217
+ # completion = assert_complete(
218
+ # bash, "scp local_path_2-", cwd=tmpdir_mkfifo
219
+ # )
220
+ # assert completion == "pipe\\|"
221
+
209
222
@pytest .mark .complete ("scp spa" , cwd = "scp" )
210
223
def test_local_path_with_spaces_1 (self , completion ):
211
224
assert completion == r"ced\ \ conf"
0 commit comments