summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-04-06 14:00:13 +0200
committerFlorian Bruhin <me@the-compiler.org>2021-04-06 14:00:13 +0200
commitc39c66aec4b9d9ab9571c315c45fada180fd5541 (patch)
treed38d7f718005bc122274fa4c15df3bea7de71606 /tests
parent98da67632cc014e64a2f6a4ae6b5d7ca4fd21ac0 (diff)
downloadqutebrowser-c39c66aec4b9d9ab9571c315c45fada180fd5541.tar.gz
qutebrowser-c39c66aec4b9d9ab9571c315c45fada180fd5541.zip
Simplify pathlib usage in webserver_sub_ssl
Diffstat (limited to 'tests')
-rw-r--r--tests/end2end/fixtures/webserver_sub_ssl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/end2end/fixtures/webserver_sub_ssl.py b/tests/end2end/fixtures/webserver_sub_ssl.py
index 74001638d..241261194 100644
--- a/tests/end2end/fixtures/webserver_sub_ssl.py
+++ b/tests/end2end/fixtures/webserver_sub_ssl.py
@@ -62,8 +62,8 @@ def turn_off_logging():
def main():
- ssl_dir = (pathlib.Path(__file__).parent.resolve()
- / '..' / 'data' / 'ssl')
+ end2end_dir = pathlib.Path(__file__).resolve().parents[1]
+ ssl_dir = end2end_dir / 'data' / 'ssl'
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
context.load_cert_chain((ssl_dir / 'cert.pem'),
(ssl_dir / 'key.pem'))