[tool:pytest] only works for pytest >= 3.0.
@@ -1,4 +1,4 @@
-[tool:pytest]
+[pytest]
python_files = testsuite/*.py
[flake8]