diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2014-11-15 17:47:39 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2014-11-15 17:47:39 +1300 |
commit | 5af7c9ebf4c61f2397ea18c132f4253362ca075d (patch) | |
tree | f4c30017339ed89a908bf99efb3dee5c520b36cf | |
parent | 7d76f3e992409caf1997b031a910b8bfdf3fc2a3 (diff) | |
download | mitmproxy-5af7c9ebf4c61f2397ea18c132f4253362ca075d.tar.gz mitmproxy-5af7c9ebf4c61f2397ea18c132f4253362ca075d.tar.bz2 mitmproxy-5af7c9ebf4c61f2397ea18c132f4253362ca075d.zip |
Exclude main.py from coverage analysis
-rw-r--r-- | .coveragerc | 2 | ||||
-rw-r--r-- | libmproxy/main.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/.coveragerc b/.coveragerc index 7a4e3ab7..70ff48e7 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 ffa012d3..e5b7f56b 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 |