diff options
author | Lembrun <amadeusk7@free.fr> | 2021-03-10 20:23:51 +0100 |
---|---|---|
committer | Lembrun <amadeusk7@free.fr> | 2021-03-10 20:23:51 +0100 |
commit | b65c881407476423a1c544546a016f79ce7af254 (patch) | |
tree | a5634776bf9912e4d66e7ff9b1c545375b901cf7 /tests/end2end/fixtures/quteprocess.py | |
parent | 87ae59cb89077cb5291e6c9f84c5a9a07c9bb4cf (diff) | |
download | qutebrowser-b65c881407476423a1c544546a016f79ce7af254.tar.gz qutebrowser-b65c881407476423a1c544546a016f79ce7af254.zip |
Fixed linting
Diffstat (limited to 'tests/end2end/fixtures/quteprocess.py')
-rw-r--r-- | tests/end2end/fixtures/quteprocess.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/end2end/fixtures/quteprocess.py b/tests/end2end/fixtures/quteprocess.py index e4dbec85f..745bc0f83 100644 --- a/tests/end2end/fixtures/quteprocess.py +++ b/tests/end2end/fixtures/quteprocess.py @@ -19,7 +19,6 @@ """Fixtures to run qutebrowser in a QProcess and communicate.""" -import os import pathlib import re import sys @@ -511,7 +510,8 @@ class QuteProc(testprocess.Process): profile_dir = pathlib.Path(pathlib.Path.cwd() / 'prof') profile_id = '{}_{}'.format(self._instance_id, next(self._run_counter)) - profile_file = pathlib.Path(profile_dir).joinpath('{}.pstats'.format(profile_id)) + profile_file = pathlib.Path(profile_dir).joinpath( + '{}.pstats'.format(profile_id)) try: pathlib.Path.mkdir(profile_dir) except FileExistsError: @@ -860,7 +860,7 @@ class QuteProc(testprocess.Process): def get_session(self): """Save the session and get the parsed session data.""" with tempfile.TemporaryDirectory() as tmpdir: - session = pathlib.Path(tmpdir / 'session.yml') + session = pathlib.Path(tmpdir).joinpath('session.yml') self.send_cmd(':session-save --with-private "{}"'.format(session)) self.wait_for(category='message', loglevel=logging.INFO, message='Saved session {}.'.format(session)) |