diff --git a/tests/end2end/features/conftest.py b/tests/end2end/features/conftest.py index d81c40b2a..8040d84cc 100644 --- a/tests/end2end/features/conftest.py +++ b/tests/end2end/features/conftest.py @@ -599,7 +599,8 @@ def check_open_tabs(quteproc, request, tabs): r'contain "(?P.*)"')) def clipboard_contains(quteproc, server, what, content): expected = content.replace('(port)', str(server.port)) - expected = expected.replace('\\n', os.linesep) + expected = expected.replace('\\n', '\n') + expected = expected.replace('(linesep)', os.linesep) quteproc.wait_for(message='Setting fake {}: {}'.format( what, json.dumps(expected))) diff --git a/tests/end2end/features/hints.feature b/tests/end2end/features/hints.feature index 2399fb372..f31094bc2 100644 --- a/tests/end2end/features/hints.feature +++ b/tests/end2end/features/hints.feature @@ -127,7 +127,7 @@ Feature: Using hints And I run :follow-hint a And I run :follow-hint s And I run :leave-mode - Then the clipboard should contain "http://localhost:(port)/data/hello.txt\nhttp://localhost:(port)/data/hello2.txt" + Then the clipboard should contain "http://localhost:(port)/data/hello.txt(linesep)http://localhost:(port)/data/hello2.txt" Scenario: Rapid hinting When I open data/hints/rapid.html in a new tab