@@ -183,7 +183,13 @@ def test_remote_path_ending_with_backslash(self, bash):
183183
184184 @pytest .fixture
185185 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+ )
187193
188194 # If the system allows creating a named pipe, we create it in a
189195 # temporary directory and returns the path. We cannot check the
@@ -206,6 +212,13 @@ def test_local_path_mark_1(self, bash, tmpdir_mkfifo):
206212 )
207213 assert completion == "pipe"
208214
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+
209222 @pytest .mark .complete ("scp spa" , cwd = "scp" )
210223 def test_local_path_with_spaces_1 (self , completion ):
211224 assert completion == r"ced\ \ conf"
0 commit comments