summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Socol <james@thegroundwork.com>2015-03-26 12:43:13 -0400
committerJames Socol <james@thegroundwork.com>2015-03-26 12:43:13 -0400
commitba9672b1a7dfe5fd315fbc6036f144067c1e2d37 (patch)
treeb57c5a873223f7822dec7b635f8564dc0a3f881a
parente78b04626aade2d912da6e54fb149856082e8ee8 (diff)
downloadpystatsd-ba9672b1a7dfe5fd315fbc6036f144067c1e2d37.tar.gz
Run flake8 on travis.
-rw-r--r--.travis.yml6
-rw-r--r--statsd/tests.py4
2 files changed, 5 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 9208899..184871a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,4 +6,8 @@ python:
- "3.3"
- "3.4"
- "pypy"
-script: nosetests
+install:
+ - pip install -q flake8
+script:
+ - nosetests
+ - flake8 statsd/
diff --git a/statsd/tests.py b/statsd/tests.py
index 16cf7ac..81a73c8 100644
--- a/statsd/tests.py
+++ b/statsd/tests.py
@@ -556,13 +556,11 @@ def _test_timer_context_exceptions(cl, proto):
def test_timer_context_exceptions_udp():
- """Exceptions within a managed block should get logged and propagate (UDP)."""
cl = _udp_client()
_test_timer_context_exceptions(cl, 'udp')
def test_timer_context_exceptions_tcp():
- """Exceptions within a managed block should get logged and propagate (TCP)."""
cl = _tcp_client()
_test_timer_context_exceptions(cl, 'tcp')
@@ -579,13 +577,11 @@ def _test_timer_decorator_exceptions(cl, proto):
def test_timer_decorator_exceptions_udp():
- """Exceptions from wrapped methods should get logged and propagate (UDP)."""
cl = _udp_client()
_test_timer_decorator_exceptions(cl, 'udp')
def test_timer_decorator_exceptions_tcp():
- """Exceptions from wrapped methods should get logged and propagate (TCP)."""
cl = _tcp_client()
_test_timer_decorator_exceptions(cl, 'tcp')