diff options
Diffstat (limited to 'tests/test_cmd2.py')
-rwxr-xr-x | tests/test_cmd2.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index e719851e..0c3333c1 100755 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -12,6 +12,9 @@ import tempfile from code import ( InteractiveConsole, ) +from unittest import ( + mock, +) import pytest @@ -38,14 +41,6 @@ from .conftest import ( verify_help_text, ) -# Python 3.5 had some regressions in the unitest.mock module, so use 3rd party mock if available -try: - import mock -except ImportError: - from unittest import ( - mock, - ) - def CreateOutsimApp(): c = cmd2.Cmd() |