diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2017-05-24 17:25:12 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2017-05-24 19:32:20 +0200 |
commit | cfed4432a0d8daf335fe0891ac55e520bac580c0 (patch) | |
tree | ac020f2cc21fec692f3a8ad9f21e44cd37046337 /test/pathod/test_test.py | |
parent | 673ed5b45e92be8919b29ee033770913dc7c0ba9 (diff) | |
download | mitmproxy-cfed4432a0d8daf335fe0891ac55e520bac580c0.tar.gz mitmproxy-cfed4432a0d8daf335fe0891ac55e520bac580c0.tar.bz2 mitmproxy-cfed4432a0d8daf335fe0891ac55e520bac580c0.zip |
pathod: fix leaking fds
Diffstat (limited to 'test/pathod/test_test.py')
-rw-r--r-- | test/pathod/test_test.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/pathod/test_test.py b/test/pathod/test_test.py index 30d0a473..d51a2c7a 100644 --- a/test/pathod/test_test.py +++ b/test/pathod/test_test.py @@ -2,7 +2,6 @@ import os import requests import pytest -from mitmproxy.test import tutils from pathod import test from pathod.pathod import SSLOptions, CA_CERT_NAME @@ -27,7 +26,7 @@ class TestDaemonManual: d = test.Daemon(ssl=True, ssloptions=ssloptions) rsp = requests.get( "https://localhost:%s/p/202:da" % d.port, - verify=os.path.join(d.thread.server.ssloptions.confdir, CA_CERT_NAME)) + verify=os.path.expanduser(os.path.join(d.thread.server.ssloptions.confdir, CA_CERT_NAME))) assert rsp.ok assert rsp.status_code == 202 d.shutdown() |