Skip to content

Commit

Permalink
Add test for opening non-ascii paths from command line.
Browse files Browse the repository at this point in the history
  • Loading branch information
lejar committed Oct 23, 2017
1 parent f53d813 commit f67c445
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/end2end/test_invocations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit f67c445

Please sign in to comment.