From 234dea98bb527d711b4983658732a22c6f263249 Mon Sep 17 00:00:00 2001 From: Ilya Etingof Date: Tue, 4 Jun 2019 12:49:48 +0200 Subject: [PATCH] Bump lower mock version to 3.0.0 Previously used mock 2.0.0 has a nasty bug which prevents mocking `@staticmethod` callables [1][2]. 1. https://github.com/testing-cabal/mock/blob/master/CHANGELOG.rst#300 2. https://bugs.python.org/issue23078 Change-Id: I38d78cb8de92e9ecfc3dda5ffafcb4ffe175169e --- doc/requirements.txt | 2 +- lower-constraints.txt | 2 +- test-requirements.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/requirements.txt b/doc/requirements.txt index 6adf3a64ec..6535659468 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -1,4 +1,4 @@ -mock>=2.0.0 # BSD +mock>=3.0.0 # BSD openstackdocstheme>=1.18.1 # Apache-2.0 os-api-ref>=1.4.0 # Apache-2.0 reno>=2.5.0 # Apache-2.0 diff --git a/lower-constraints.txt b/lower-constraints.txt index 859c210448..bb2e7f41a0 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -53,7 +53,7 @@ logutils==0.3.5 Mako==1.0.7 MarkupSafe==1.0 mccabe==0.2.1 -mock==2.0.0 +mock==3.0.0 monotonic==1.4 mox3==0.25.0 msgpack==0.5.6 diff --git a/test-requirements.txt b/test-requirements.txt index 373d2a4da9..9ec005c946 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -5,7 +5,7 @@ hacking>=1.0.0,<1.1.0 # Apache-2.0 coverage!=4.4,>=4.0 # Apache-2.0 doc8>=0.6.0 # Apache-2.0 fixtures>=3.0.0 # Apache-2.0/BSD -mock>=2.0.0 # BSD +mock>=3.0.0 # BSD Babel!=2.4.0,>=2.3.4 # BSD PyMySQL>=0.7.6 # MIT License iso8601>=0.1.11 # MIT