@@ -157,7 +157,13 @@ def test_xfunc_remote_files(self, bash):
157
157
158
158
@pytest .fixture
159
159
def tmpdir_mkfifo (self , request , bash ):
160
- tmpdir , _ , _ = prepare_fixture_dir (request , files = [], dirs = [])
160
+ # We prepare two files: 1) a named pipe and 2) a regular file ending
161
+ # with the same name but an extra special character "|".
162
+ tmpdir , _ , _ = prepare_fixture_dir (
163
+ request ,
164
+ files = ["local_path_2-pipe|" ],
165
+ dirs = [],
166
+ )
161
167
162
168
try :
163
169
assert_bash_exec (bash , "mkfifo '%s/local_path_1-pipe'" % tmpdir )
@@ -174,6 +180,13 @@ def test_local_path_mark_1(self, bash, tmpdir_mkfifo):
174
180
)
175
181
assert completion == "pipe"
176
182
183
+ # FIXME: This test currently fails.
184
+ # def test_local_path_mark_2(self, bash, tmpdir_mkfifo):
185
+ # completion = assert_complete(
186
+ # bash, "scp local_path_2-", cwd=tmpdir_mkfifo
187
+ # )
188
+ # assert completion == "pipe\\|"
189
+
177
190
@pytest .mark .complete ("scp spa" , cwd = "scp" )
178
191
def test_local_path_with_spaces_1 (self , completion ):
179
192
assert completion == r"ced\ \ conf"
0 commit comments