Fix coverage reports after src/urlib3 move
MODIFY
.coveragerc
.coveragerc
[run]
include =
- urllib3/*
+ *urllib3/*
omit =
- urllib3/packages/*
- urllib3/contrib/appengine.py
- urllib3/contrib/ntlmpool.py
- urllib3/contrib/pyopenssl.py
- urllib3/contrib/securetransport.py
- urllib3/contrib/_securetransport/*
+ *urllib3/packages/*
+ *urllib3/contrib/appengine.py
+ *urllib3/contrib/ntlmpool.py
+ *urllib3/contrib/pyopenssl.py
+ *urllib3/contrib/securetransport.py
+ *urllib3/contrib/_securetransport/*
[report]
exclude_lines =

MODIFY
dev-requirements.txt
dev-requirements.txt
-mock==1.3.0
-coverage==3.7.1
-tox==2.1.1
-twine==1.5.0
-wheel==0.24.0
+mock==2.0.0
+coverage==4.5.1
+tox==2.9.1
+twine==1.11.0
+wheel==0.30.0
tornado==5.0.2; python_version>"2.6"
tornado==4.2.1; python_version<="2.6"
-PySocks==1.5.6
-pkginfo>=1.0,!=1.3.0
+PySocks==1.6.8
+pkginfo==1.4.2
pytest-cov==2.5.1
-pytest-timeout==1.2.0
-pytest==3.1.0
+pytest-timeout==1.3.1; python_version>"2.6"
+pytest-timeout==1.2.0; python_version<="2.6"
+pytest==3.6.4; python_version>"2.6"
+pytest==3.2.5; python_version<="2.6"
gcp-devrel-py-tools==0.0.15; python_version>"2.6"

MODIFY
test/with_dummyserver/test_https.py
test/with_dummyserver/test_https.py
@@ -535,6 +535,7 @@ class TestHTTPS(HTTPSDummyServerTestCase):
https_pool._make_request(conn, 'GET', '/')
+ @onlyPy279OrNewer
def test_ssl_correct_system_time(self):
self._pool.cert_reqs = 'CERT_REQUIRED'
self._pool.ca_certs = DEFAULT_CA
@@ -542,6 +543,7 @@ class TestHTTPS(HTTPSDummyServerTestCase):
w = self._request_without_resource_warnings('GET', '/')
self.assertEqual([], w)
+ @onlyPy279OrNewer
def test_ssl_wrong_system_time(self):
self._pool.cert_reqs = 'CERT_REQUIRED'
self._pool.ca_certs = DEFAULT_CA

MODIFY
tox.ini
tox.ini
@@ -3,13 +3,13 @@ envlist = flake8-py3, py26, py27, py34, py35, py36, py37, pypy
[testenv]
deps= -r{toxinidir}/dev-requirements.txt
+extras= socks,secure
commands=
# Print out the python version and bitness
pip --version
python --version
python -c "import struct; print(struct.calcsize('P') * 8)"
- pip install .[socks,secure]
- py.test -r sx --cov urllib3 test {posargs}
+ py.test -r sx --cov=urllib3 --cov-config={toxinidir}/.coveragerc test {posargs}
setenv =
PYTHONWARNINGS=always::DeprecationWarning
passenv = CFLAGS LDFLAGS TRAVIS APPVEYOR CRYPTOGRAPHY_OSX_NO_LINK_FLAGS

Fix coverage reports after src/urlib3 move (#1425)