diff options
author | Andrew Brookins <andrew.brookins@redislabs.com> | 2020-07-09 16:30:10 -0700 |
---|---|---|
committer | Andrew Brookins <andrew.brookins@redislabs.com> | 2020-07-09 16:30:10 -0700 |
commit | a1e5a7685fda4fc8ebe6456988c18e14724bb05a (patch) | |
tree | 01e82c0396e792e81302d70c29e15f618dc309c4 | |
parent | c31ea12e89141dd90a69180060ae386948831f19 (diff) | |
download | redis-py-a1e5a7685fda4fc8ebe6456988c18e14724bb05a.tar.gz |
Fix flake8 errors
-rw-r--r-- | setup.cfg | 2 | ||||
-rw-r--r-- | tests/conftest.py | 2 | ||||
-rw-r--r-- | tests/test_connection_pool.py | 2 |
3 files changed, 2 insertions, 4 deletions
@@ -36,7 +36,7 @@ python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.* hiredis = hiredis>=0.1.3 [flake8] -exclude = .venv,.tox,dist,docs,build,*.egg,redis_install,env,venv +exclude = .venv,.tox,dist,docs,build,*.egg,redis_install,env,venv,.undodir [bdist_wheel] universal = 1 diff --git a/tests/conftest.py b/tests/conftest.py index 4a745df..704a7e3 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -18,7 +18,6 @@ DEFAULT_REDIS_URL = "redis://localhost:6379/9" DEFAULT_REDIS_MASTER_HOST = "localhost" - def pytest_addoption(parser): parser.addoption('--redis-url', default=DEFAULT_REDIS_URL, action="store", @@ -30,7 +29,6 @@ def pytest_addoption(parser): " defaults to `%(default)s`") - def _get_info(redis_url): client = redis.Redis.from_url(redis_url) info = client.info() diff --git a/tests/test_connection_pool.py b/tests/test_connection_pool.py index 2f8ffbf..40ac340 100644 --- a/tests/test_connection_pool.py +++ b/tests/test_connection_pool.py @@ -129,7 +129,7 @@ class TestBlockingConnectionPool(object): # we should have waited at least 0.1 seconds assert time.time() - start >= 0.1 - def test_connection_pool_blocks_until_another_connection_released(self, master_host): + def test_connection_pool_blocks_until_another_connection_released(self, master_host): # noqa: E501 """ When out of connections, block until another connection is released to the pool |