diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -22,5 +22,5 @@ setup(
     setup_requires=['pytest-runner', 'setuptools_scm'],
     # put pytest last to workaround this bug
     # https://bitbucket.org/pypa/setuptools/issues/196/tests_require-pytest-pytest-cov-breaks
-    tests_require=['mock', 'pytest-timeout', 'moto', 'responses', 'scipy', 'pytest'],
+    tests_require=['mock', 'pytest-timeout', 'moto<=1.1.22', 'responses', 'scipy', 'pytest'],
 )
Pin moto version

This is to circumvent an upstream issue with a required library (aws-xray-sdk) that is
pinned to a version not available on pypi anymore.