From 924e7a40f185fd3116d593ba0353046bd7c81e1b Mon Sep 17 00:00:00 2001 From: Radosław Piliszek Date: Thu, 2 Apr 2020 18:22:38 +0200 Subject: Use unittest.mock instead of PyPI mock Now that py2 is gone, oslotest dropped dependency on mock and will soon affect Ussuri CI [1], let's use unittest.mock built in py3. This also fixes py38 jobs and proactively prevents py36 and py37 failing due to [1]. This is because we never included mock in test-requirements (but in lower-constraints where it does not really belong at all) and instead relied on oslotest to bring it in. [1] https://review.opendev.org/716322 Change-Id: Iceedcc7ad0d087414f6f94dfc0235fda4754be63 --- tests/test_build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_build.py') diff --git a/tests/test_build.py b/tests/test_build.py index 632931ee4..c4a4a6aed 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -13,8 +13,8 @@ import multiprocessing import os import sys +from unittest.mock import patch -from mock import patch from oslo_log import fixture as log_fixture from oslo_log import log as logging from oslotest import base -- cgit v1.2.3