From 5af7c9ebf4c61f2397ea18c132f4253362ca075d Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 15 Nov 2014 17:47:39 +1300 Subject: [PATCH] Exclude main.py from coverage analysis --- .coveragerc | 2 +- libmproxy/main.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.coveragerc b/.coveragerc index 7a4e3ab73..70ff48e78 100644 --- a/.coveragerc +++ b/.coveragerc @@ -2,5 +2,5 @@ branch = True [report] -omit = *contrib*, *tnetstring*, *platform*, *console* +omit = *contrib*, *tnetstring*, *platform*, *console*, *main.py include = *libmproxy* diff --git a/libmproxy/main.py b/libmproxy/main.py index ffa012d3f..e5b7f56b2 100644 --- a/libmproxy/main.py +++ b/libmproxy/main.py @@ -8,6 +8,9 @@ from .proxy import process_proxy_options, ProxyServerError from .proxy.server import DummyServer, ProxyServer +# This file is not included in coverage analysis or tests - anything that can be +# tested should live elsewhere. + def check_versions(): """ Having installed a wrong version of pyOpenSSL or netlib is unfortunately a