Skip to content

Commit 725e004

Browse files
committed
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: Ibd39328c27b68190e2edbf1f52fcea52db3ae791 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
1 parent 70f1ff3 commit 725e004

3 files changed

Lines changed: 1 addition & 3 deletions

File tree

lower-constraints.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ kombu==4.0.0
4343
linecache2==1.0.0
4444
MarkupSafe==1.1.0
4545
mccabe==0.2.1
46-
mock==2.0.0
4746
monotonic==0.6
4847
mox3==0.20.0
4948
msgpack-python==0.4.0

openstackclient/tests/unit/identity/v3/test_access_rule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
#
1515

1616
import copy
17+
from unittest import mock
1718

18-
import mock
1919
from osc_lib import exceptions
2020
from osc_lib import utils
2121

test-requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ hacking>=2.0.0 # Apache-2.0
55
coverage!=4.4,>=4.0 # Apache-2.0
66
fixtures>=3.0.0 # Apache-2.0/BSD
77
flake8-import-order>=0.13 # LGPLv3
8-
mock>=2.0.0 # BSD
98
oslotest>=3.2.0 # Apache-2.0
109
requests>=2.14.2 # Apache-2.0
1110
requests-mock>=1.2.0 # Apache-2.0

0 commit comments

Comments
 (0)