aboutsummaryrefslogtreecommitdiffstats
path: root/test/full_coverage_plugin.py
diff options
context:
space:
mode:
authorUjjwal Verma <ujjwalverma1111@gmail.com>2017-05-17 20:57:57 +0530
committerThomas Kriechbaumer <Kriechi@users.noreply.github.com>2017-05-17 23:27:57 +0800
commit5833b218b2a04e73dec4439560429c76378257c2 (patch)
tree8fce88e656ed5d08abd27a91dafc7287f8f2b0f3 /test/full_coverage_plugin.py
parentfeff5bd138a9cb4e72760f6aea8bccf0ad4b81d2 (diff)
downloadmitmproxy-5833b218b2a04e73dec4439560429c76378257c2.tar.gz
mitmproxy-5833b218b2a04e73dec4439560429c76378257c2.tar.bz2
mitmproxy-5833b218b2a04e73dec4439560429c76378257c2.zip
Increase net.tcp.py coverage (#2336)
Diffstat (limited to 'test/full_coverage_plugin.py')
-rw-r--r--test/full_coverage_plugin.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/full_coverage_plugin.py b/test/full_coverage_plugin.py
index d98c29d6..ec30a9f9 100644
--- a/test/full_coverage_plugin.py
+++ b/test/full_coverage_plugin.py
@@ -1,6 +1,7 @@
import os
import configparser
import pytest
+import sys
here = os.path.abspath(os.path.dirname(__file__))
@@ -59,6 +60,12 @@ def pytest_runtestloop(session):
if os.name == 'nt':
cov.exclude('pragma: windows no cover')
+ if sys.platform == 'darwin':
+ cov.exclude('pragma: osx no cover')
+
+ if os.environ.get("OPENSSL") == "old":
+ cov.exclude('pragma: openssl-old no cover')
+
yield
coverage_values = dict([(name, 0) for name in pytest.config.option.full_cov])