Skip to content

Commit 47dcdcc

Browse files
committed
Remove mock as requirement as now part of Py 3.3+
Remove mock as a test requirement as it's now part of Python from 3.3 onwards and we're dropping the last bits of Python 2 support. Unit test updated to use new import (but maintain rest of code).
1 parent 37d8623 commit 47dcdcc

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

requirements-test.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Additional requirements for the unit and coverage tests
22

33
coveralls<=1.2.0
4-
mock<4.0.0 # Pinned because version 4 dropped support for Python 2.7
54
codecov
65
pre-commit

test/test_agents.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
import tempfile
55
from textwrap import dedent
66
import unittest
7-
8-
import mock
7+
import unittest.mock as mock
98

109
import ssm.agents
1110
from ssm.ssm2 import Ssm2Exception

0 commit comments

Comments
 (0)