diff options
| author | John Vandenberg <jayvdb@gmail.com> | 2015-10-21 09:09:22 +1100 |
|---|---|---|
| committer | John Vandenberg <jayvdb@gmail.com> | 2015-11-02 21:27:37 +1100 |
| commit | cb7910785f673669507fdbcb303d3d21be035f84 (patch) | |
| tree | ee41aaf29787b68600439dd61772d5915940e280 /dummyserver/testcase.py | |
| parent | 3bd63406bef7c16d007c17563b6af14582567d4b (diff) | |
| download | urllib3-cb7910785f673669507fdbcb303d3d21be035f84.tar.gz | |
Fix flake8 violations
Add tox rule to prevent regressions.
Diffstat (limited to 'dummyserver/testcase.py')
| -rw-r--r-- | dummyserver/testcase.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dummyserver/testcase.py b/dummyserver/testcase.py index e5ae51bd..bdc7e6aa 100644 --- a/dummyserver/testcase.py +++ b/dummyserver/testcase.py @@ -42,6 +42,7 @@ class SocketDummyServerTestCase(unittest.TestCase): @classmethod def start_response_handler(cls, response, num=1, block_send=None): ready_event = threading.Event() + def socket_handler(listener): for _ in range(num): ready_event.set() @@ -61,9 +62,9 @@ class SocketDummyServerTestCase(unittest.TestCase): @classmethod def start_basic_handler(cls, **kw): return cls.start_response_handler( - b'HTTP/1.1 200 OK\r\n' - b'Content-Length: 0\r\n' - b'\r\n', **kw) + b'HTTP/1.1 200 OK\r\n' + b'Content-Length: 0\r\n' + b'\r\n', **kw) @classmethod def tearDownClass(cls): |
