summaryrefslogtreecommitdiff
path: root/tests/end2end/test_dirbrowser.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/end2end/test_dirbrowser.py')
-rw-r--r--tests/end2end/test_dirbrowser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/end2end/test_dirbrowser.py b/tests/end2end/test_dirbrowser.py
index 58cf66d6a..b2e3a8e29 100644
--- a/tests/end2end/test_dirbrowser.py
+++ b/tests/end2end/test_dirbrowser.py
@@ -124,7 +124,7 @@ def parse(quteproc):
title_prefix = 'Browse directory: '
# Strip off the title prefix to obtain the path of the folder that
# we're browsing
- path = pathlib.Path(soup.title.string[len(title_prefix):])
+ path = pathlib.Path(soup.title.string.removeprefix(title_prefix))
container = soup('div', id='dirbrowserContainer')[0]