aboutsummaryrefslogtreecommitdiffstats
path: root/test/pathod/test_pathoc.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2016-10-20 12:36:26 +1300
committerGitHub <noreply@github.com>2016-10-20 12:36:26 +1300
commit711078ba3f63257df745bb3edd80a85717e94b20 (patch)
treed3116cd540faf01f272a0892fc6a9b83b4f6de8a /test/pathod/test_pathoc.py
parentee56d3fae0baeef1f31a83db122dd832d4c0e07e (diff)
parent8430f857b504a3e7406dc36e54dc32783569d0dd (diff)
downloadmitmproxy-711078ba3f63257df745bb3edd80a85717e94b20.tar.gz
mitmproxy-711078ba3f63257df745bb3edd80a85717e94b20.tar.bz2
mitmproxy-711078ba3f63257df745bb3edd80a85717e94b20.zip
Merge pull request #1637 from cortesi/tatanetlib
This PR merges netlib into mitmproxy
Diffstat (limited to 'test/pathod/test_pathoc.py')
-rw-r--r--test/pathod/test_pathoc.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/pathod/test_pathoc.py b/test/pathod/test_pathoc.py
index f9670d73..90177ff6 100644
--- a/test/pathod/test_pathoc.py
+++ b/test/pathod/test_pathoc.py
@@ -1,11 +1,11 @@
import io
from mock import Mock
-from netlib import http
-from netlib import tcp
-from netlib.exceptions import NetlibException
-from netlib.http import http1
-from netlib.tutils import raises
+from mitmproxy.net import http
+from mitmproxy.net import tcp
+from mitmproxy.net.http import http1
+from mitmproxy.test.tutils import raises
+from mitmproxy import exceptions
from pathod import pathoc, language
from pathod.protocols.http2 import HTTP2StateProtocol
@@ -36,7 +36,7 @@ class PathocTestDaemon(tutils.DaemonTests):
r = r.freeze(language.Settings())
try:
c.request(r)
- except NetlibException:
+ except exceptions.NetlibException:
pass
self.d.wait_for_silence()
return s.getvalue()