Swap out nose for pytest in the test runner
MODIFY
dev-requirements.txt
dev-requirements.txt
@@ -9,3 +9,4 @@ tornado==4.2.1
PySocks==1.5.6
pkginfo>=1.0,!=1.3.0
psutil==4.3.1
+pytest==3.1.0

MODIFY
setup.py
setup.py
@@ -48,6 +48,7 @@ setup(name='urllib3',
tests_require=[
# These are a less-specific subset of dev-requirements.txt, for the
# convenience of distro package maintainers.
+ 'pytest',
'nose',
'mock',
'tornado',

MODIFY
tox.ini
tox.ini
@@ -5,7 +5,7 @@ envlist = flake8-py3, py26, py27, py33, py34, py35, py36, pypy
deps= -r{toxinidir}/dev-requirements.txt
commands=
pip install .[socks,secure]
- nosetests []
+ py.test test
setenv =
PYTHONWARNINGS=always::DeprecationWarning
passenv = CFLAGS LDFLAGS TRAVIS APPVEYOR CRYPTOGRAPHY_OSX_NO_LINK_FLAGS

Swap out nose for pytest in the test runner