summaryrefslogtreecommitdiff
path: root/tests/test_plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_plugin.py')
-rw-r--r--tests/test_plugin.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/test_plugin.py b/tests/test_plugin.py
index cd1d9ab9..97c046a2 100644
--- a/tests/test_plugin.py
+++ b/tests/test_plugin.py
@@ -5,6 +5,9 @@ Test plugin infrastructure and hooks.
"""
import argparse
import sys
+from unittest import (
+ mock,
+)
import pytest
@@ -16,14 +19,6 @@ from cmd2 import (
with_argparser,
)
-# 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,
- )
-
class Plugin:
"""A mixin class for testing hook registration and calling"""