diff --git a/lower-constraints.txt b/lower-constraints.txt index b6c825c..68fa740 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -2,7 +2,6 @@ bandit==1.4.0 coverage==4.0 doc8==0.6.0 hacking==0.12.0 -mock==2.0.0 oslo.i18n==3.15.3 oslo.serialization==2.28.1 oslo.utils==3.33.0 diff --git a/octavia_lib/tests/unit/api/drivers/test_driver_lib.py b/octavia_lib/tests/unit/api/drivers/test_driver_lib.py index fbaad3a..1afdc9b 100644 --- a/octavia_lib/tests/unit/api/drivers/test_driver_lib.py +++ b/octavia_lib/tests/unit/api/drivers/test_driver_lib.py @@ -11,8 +11,7 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. - -import mock +from unittest import mock from octavia_lib.api.drivers import driver_lib from octavia_lib.api.drivers import exceptions as driver_exceptions diff --git a/octavia_lib/tests/unit/base.py b/octavia_lib/tests/unit/base.py index bfaf504..13204a1 100644 --- a/octavia_lib/tests/unit/base.py +++ b/octavia_lib/tests/unit/base.py @@ -14,8 +14,7 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. - -import mock +from unittest import mock from oslotest import base diff --git a/test-requirements.txt b/test-requirements.txt index 56a501c..3ca6033 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -7,7 +7,6 @@ hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0 bandit>=1.1.0 # Apache-2.0 coverage>=4.0,!=4.4 # Apache-2.0 doc8>=0.6.0 # Apache-2.0 -mock>=2.0.0 # BSD pylint==1.9.2 # GPLv2 python-subunit>=1.0.0 # Apache-2.0/BSD oslo.utils>=3.33.0 # Apache-2.0