diff options
author | Lembrun <amadeusk7@free.fr> | 2021-03-11 20:26:14 +0100 |
---|---|---|
committer | Lembrun <amadeusk7@free.fr> | 2021-03-11 20:26:14 +0100 |
commit | f7aebf2fd5bf7ffd94abc58cf5be103994f7b683 (patch) | |
tree | 5d6a669d468195c2723ff7a305479ea935a3adae /tests/end2end/fixtures/quteprocess.py | |
parent | 529e902b58cf22b7e1de3b47598ab1bbd4c9b713 (diff) | |
download | qutebrowser-f7aebf2fd5bf7ffd94abc58cf5be103994f7b683.tar.gz qutebrowser-f7aebf2fd5bf7ffd94abc58cf5be103994f7b683.zip |
Minor changes #2
Diffstat (limited to 'tests/end2end/fixtures/quteprocess.py')
-rw-r--r-- | tests/end2end/fixtures/quteprocess.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/end2end/fixtures/quteprocess.py b/tests/end2end/fixtures/quteprocess.py index 9eb0b3fae..27fa45f55 100644 --- a/tests/end2end/fixtures/quteprocess.py +++ b/tests/end2end/fixtures/quteprocess.py @@ -858,8 +858,8 @@ class QuteProc(testprocess.Process): def get_session(self): """Save the session and get the parsed session data.""" - with tempfile.TemporaryDirectory() as tmp_path: - session = tmp_path / 'session.yml' + with tempfile.TemporaryDirectory() as tdir: + session = pathlib.Path(tdir) / 'session.yml' self.send_cmd(':session-save --with-private "{}"'.format(session)) self.wait_for(category='message', loglevel=logging.INFO, message='Saved session {}.'.format(session)) @@ -871,8 +871,8 @@ class QuteProc(testprocess.Process): def get_content(self, plain=True): """Get the contents of the current page.""" - with tempfile.TemporaryDirectory() as tmp_path: - path = tmp_path / 'page' + with tempfile.TemporaryDirectory() as tdir: + path = pathlib.Path(tdir) / 'page' if plain: self.send_cmd(':debug-dump-page --plain "{}"'.format(path)) |