Pin pytest until we drop 2.6 (#721)

diff --git a/setup.py b/setup.py
index 13188ef..937d556 100755
--- a/setup.py
+++ b/setup.py
@@ -102,7 +102,9 @@
             "test": [
                 "flaky",
                 "pretend",
-                "pytest>=3.0.1",
+                # pytest 3.3 doesn't support Python 2.6 anymore.
+                # Remove this pin once we drop Python 2.6 too.
+                "pytest>=3.0.1,<3.3.0",
             ],
             "docs": [
                 "sphinx",