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.
2 parents 2d610e3 + 7559bb8 commit b63239dCopy full SHA for b63239d
1 file changed
tests/test_types.py
@@ -226,7 +226,12 @@ def no_access(*args, **kwargs):
226
def test_file_surrogates(type, tmp_path):
227
path = tmp_path / "\udcff"
228
229
- with pytest.raises(click.BadParameter, match="�': No such file or directory"):
+ # - common case: �': No such file or directory
230
+ # - special case: Illegal byte sequence
231
+ # The spacial case is seen with rootless Podman. The root cause is most
232
+ # likely that the path is handled by a user-space program (FUSE).
233
+ match = r"(�': No such file or directory|Illegal byte sequence)"
234
+ with pytest.raises(click.BadParameter, match=match):
235
type.convert(path, None, None)
236
237
0 commit comments