E305 Expected 2 blank lines after class/func, found 1
MODIFY
test/__init__.py
test/__init__.py
@@ -94,6 +94,7 @@ def onlyPy3(test):
return test(*args, **kwargs)
return wrapper
+
_requires_network_has_route = None

MODIFY
test/test_collections.py
test/test_collections.py
@@ -339,5 +339,6 @@ www-authenticate: bla
self.assertEqual(d['www-authenticate'], 'asdf, bla')
self.assertEqual(d.getlist('www-authenticate'), ['asdf', 'bla'])
+
if __name__ == '__main__':
unittest.main()

MODIFY
test/with_dummyserver/test_connectionpool.py
test/with_dummyserver/test_connectionpool.py
@@ -928,5 +928,6 @@ class TestFileBodiesOnRetryOrRedirect(HTTPDummyServerTestCase):
except UnrewindableBodyError as e:
self.assertTrue('Unable to record file position for' in str(e))
+
if __name__ == '__main__':
unittest.main()

MODIFY
test/with_dummyserver/test_poolmanager.py
test/with_dummyserver/test_poolmanager.py
@@ -208,5 +208,6 @@ class TestIPv6PoolManager(IPv6HTTPDummyServerTestCase):
http = PoolManager()
http.request('GET', self.base_url)
+
if __name__ == '__main__':
unittest.main()

MODIFY
test/with_dummyserver/test_proxy_poolmanager.py
test/with_dummyserver/test_proxy_poolmanager.py
@@ -331,5 +331,6 @@ class TestIPv6HTTPProxyManager(IPv6HTTPDummyProxyTestCase):
r = http.request('GET', '%s/' % self.https_url)
self.assertEqual(r.status, 200)
+
if __name__ == '__main__':
unittest.main()

E305 Expected 2 blank lines after class/func, found 1