diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -502,10 +502,10 @@ devel = [
     'pre-commit',
     'pylint==2.6.0',
     'pysftp',
-    'pytest',
+    'pytest~=6.0',
     'pytest-cov',
     'pytest-instafail',
-    'pytest-rerunfailures',
+    'pytest-rerunfailures~=9.1',
     'pytest-timeouts',
     'pytest-xdist',
     'pywinrm',
Update to Pytest <I> (#<I>)

And pytest 6 removed a class that the rerunfailures plugin was using, so

we have to upgrade that too.