Use unittest.mock instead of third party mock

Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I8c269117dba546ee2c75685dbd29756407488aaf
This commit is contained in:
Ghanshyam Mann 2020-07-31 14:07:40 -05:00
parent ea0e88e9ce
commit eabcb94756
4 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ test_os_testr
Tests for `os_testr` module.
"""
import io
import mock
from unittest import mock
from os_testr import ostestr as os_testr
from os_testr.tests import base

View File

@ -13,7 +13,7 @@
# under the License.
import io
import mock
from unittest import mock
from os_testr import regex_builder as os_testr
from os_testr.tests import base

View File

@ -18,11 +18,11 @@ import io
import os
import subprocess
import sys
from unittest.mock import patch
from ddt import data
from ddt import ddt
from ddt import unpack
from mock import patch
import six
from os_testr import subunit_trace

View File

@ -12,8 +12,8 @@
# License for the specific language governing permissions and limitations
# under the License.
import mock
import re
from unittest import mock
import six