Add test for opening non-ascii paths from command line.
This commit is contained in:
parent
f53d8135b0
commit
f67c445f3d
@ -119,6 +119,18 @@ def test_open_with_ascii_locale(request, server, tmpdir, quteproc_new):
|
||||
message='URL contains characters *')
|
||||
|
||||
|
||||
@pytest.mark.linux
|
||||
def test_open_command_line_with_ascii_locale(request, server, tmpdir, quteproc_new):
|
||||
"""Test opening file from the command line with a non-ascii name with LC_ALL=C set.
|
||||
|
||||
https://github.com/qutebrowser/qutebrowser/issues/1450
|
||||
"""
|
||||
# The file does not actually have to exist because the relevant checks will
|
||||
# all be called. No exception thrown means test success.
|
||||
args = ['--temp-basedir'] + _base_args(request.config) + ['/home/user/föö.html']
|
||||
quteproc_new.start(args, env={'LC_ALL': 'C'})
|
||||
|
||||
|
||||
@pytest.mark.linux
|
||||
def test_misconfigured_user_dirs(request, server, temp_basedir_env,
|
||||
tmpdir, quteproc_new):
|
||||
|
Loading…
Reference in New Issue
Block a user