diff --git a/setup.py b/setup.py index 13188ef4c..937d556ce 100755 --- a/setup.py +++ b/setup.py @@ -102,7 +102,9 @@ def find_meta(meta): "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",