From f61109db84a673caeaaabf9e3c7faedfd37b2b34 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Thu, 17 Sep 2015 02:13:42 +0200 Subject: use new netlib exceptions --- test/test_pathoc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test_pathoc.py') diff --git a/test/test_pathoc.py b/test/test_pathoc.py index 1e15c9eb..6c0bf039 100644 --- a/test/test_pathoc.py +++ b/test/test_pathoc.py @@ -5,7 +5,7 @@ import OpenSSL from mock import Mock from netlib import tcp, http, socks -from netlib.exceptions import HttpException +from netlib.exceptions import HttpException, TcpException, NetlibException from netlib.http import http1, http2 from libpathod import pathoc, test, version, pathod, language @@ -84,7 +84,7 @@ class _TestDaemon: r = r.freeze(language.Settings()) try: c.request(r) - except (HttpException, tcp.NetLibError): + except NetlibException: pass return s.getvalue() -- cgit v1.2.3