Pin pytest to <2.8, there's a bug with deprecation warnings
diff --git a/dev-requirements.txt b/dev-requirements.txt
index 092b991..440d3b0 100644
--- a/dev-requirements.txt
+++ b/dev-requirements.txt
@@ -5,7 +5,7 @@
 iso8601
 pep8-naming
 pretend
-pytest
+pytest<2.8
 requests
 sphinx
 sphinx_rtd_theme
diff --git a/setup.py b/setup.py
index 444b488..b36f3de 100644
--- a/setup.py
+++ b/setup.py
@@ -57,7 +57,7 @@
 
 # If you add a new dep here you probably need to add it in the tox.ini as well
 test_requirements = [
-    "pytest",
+    "pytest<2.8",
     "pretend",
     "iso8601",
 ]
diff --git a/tox.ini b/tox.ini
index 219da54..a890e38 100644
--- a/tox.ini
+++ b/tox.ini
@@ -7,7 +7,7 @@
     coverage
     iso8601
     pretend
-    pytest
+    pytest<2.8
     ./vectors
 passenv = ARCHFLAGS LDFLAGS CFLAGS INCLUDE LIB LD_LIBRARY_PATH USERNAME
 commands =