summaryrefslogtreecommitdiff
path: root/tests/end2end/fixtures/quteprocess.py
diff options
context:
space:
mode:
authorLembrun <amadeusk7@free.fr>2021-03-11 19:56:36 +0100
committerLembrun <amadeusk7@free.fr>2021-03-11 19:56:36 +0100
commit529e902b58cf22b7e1de3b47598ab1bbd4c9b713 (patch)
tree9dca609f5f77f0d648706daf6ca6e1c95ad866cf /tests/end2end/fixtures/quteprocess.py
parentc7b6b68c0d502a67a83f1a3dfd5dfe249148b562 (diff)
downloadqutebrowser-529e902b58cf22b7e1de3b47598ab1bbd4c9b713.tar.gz
qutebrowser-529e902b58cf22b7e1de3b47598ab1bbd4c9b713.zip
Minor changes
Diffstat (limited to 'tests/end2end/fixtures/quteprocess.py')
-rw-r--r--tests/end2end/fixtures/quteprocess.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/end2end/fixtures/quteprocess.py b/tests/end2end/fixtures/quteprocess.py
index d371ac8b1..9eb0b3fae 100644
--- a/tests/end2end/fixtures/quteprocess.py
+++ b/tests/end2end/fixtures/quteprocess.py
@@ -859,7 +859,7 @@ class QuteProc(testprocess.Process):
def get_session(self):
"""Save the session and get the parsed session data."""
with tempfile.TemporaryDirectory() as tmp_path:
- session = pathlib.Path(tmp_path) / 'session.yml'
+ session = tmp_path / 'session.yml'
self.send_cmd(':session-save --with-private "{}"'.format(session))
self.wait_for(category='message', loglevel=logging.INFO,
message='Saved session {}.'.format(session))
@@ -872,7 +872,7 @@ class QuteProc(testprocess.Process):
def get_content(self, plain=True):
"""Get the contents of the current page."""
with tempfile.TemporaryDirectory() as tmp_path:
- path = pathlib.Path(tmp_path) / 'page'
+ path = tmp_path / 'page'
if plain:
self.send_cmd(':debug-dump-page --plain "{}"'.format(path))