Skip to content

Commit e73b7e5

Browse files
committed
drop legacy patch import
With this extension only supporting Python 3, there is no longer a need to provide a fallback import for the patch call; dropping. Signed-off-by: James Knight <[email protected]>
1 parent 560ebb0 commit e73b7e5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/unit-tests/test_config_postfix_formatting.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@
88
from tests.lib.testcase import ConfluenceTestCase
99
from tests.lib import parse
1010
from tests.lib.testcase import setup_builder
11-
# python2.7 is still supported so unittest will not contain mock so we must
12-
# catch the import error and import it from the installed module instead
13-
try:
14-
from unittest.mock import patch
15-
except ImportError:
16-
from mock import patch
11+
from unittest.mock import patch
1712

1813

1914
class TestCreateDocnameUniqueHash(ConfluenceTestCase):

0 commit comments

Comments
 (0)