From 63ad4a4f5117d34ba6e9692eef1fc88f68b19c3d Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sun, 30 Aug 2015 15:59:50 +0200 Subject: coverage++ --- libmproxy/protocol/base.py | 4 ++-- libmproxy/protocol/http.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'libmproxy/protocol') diff --git a/libmproxy/protocol/base.py b/libmproxy/protocol/base.py index d22a71c6..1c9b356c 100644 --- a/libmproxy/protocol/base.py +++ b/libmproxy/protocol/base.py @@ -43,7 +43,7 @@ class _LayerCodeCompletion(object): Dummy class that provides type hinting in PyCharm, which simplifies development a lot. """ - def __init__(self, *args, **kwargs): + def __init__(self, *args, **kwargs): # pragma: nocover super(_LayerCodeCompletion, self).__init__(*args, **kwargs) if True: return @@ -70,7 +70,7 @@ class Layer(_LayerCodeCompletion): Raises: ProtocolException in case of protocol exceptions. """ - raise NotImplementedError + raise NotImplementedError() def __getattr__(self, name): """ diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py index fc57f6df..345b3aa8 100644 --- a/libmproxy/protocol/http.py +++ b/libmproxy/protocol/http.py @@ -40,7 +40,7 @@ class _StreamingHttpLayer(_HttpLayer): def read_response_body(self, headers, request_method, response_code, max_chunk_size=None): raise NotImplementedError() - yield "this is a generator" + yield "this is a generator" # pragma: no cover def send_response_headers(self, response): raise NotImplementedError -- cgit v1.2.3