diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-02-21 10:04:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-21 10:04:56 -0500 |
commit | 9c60ac6f3169f9df37e6c5166844fb9cf5f6766d (patch) | |
tree | f96381edfdb6a31585e7ab3e3e05ded9d41731ec /tests/test_cmd2.py | |
parent | a7119e1b26a8bae531b118b7cb8c4b195f731df6 (diff) | |
parent | 811a7302eef99b9f67bfcdde3400322b7557dbab (diff) | |
download | cmd2-git-9c60ac6f3169f9df37e6c5166844fb9cf5f6766d.tar.gz |
Merge pull request #1059 from python-cmd2/deprecate_35
Deprecate support for Python 3.5
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() |