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_run_pyscript.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_run_pyscript.py')
-rw-r--r-- | tests/test_run_pyscript.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/test_run_pyscript.py b/tests/test_run_pyscript.py index 2d74a5f0..b8daa24b 100644 --- a/tests/test_run_pyscript.py +++ b/tests/test_run_pyscript.py @@ -5,6 +5,9 @@ Unit/functional testing for run_pytest in cmd2 """ import builtins import os +from unittest import ( + mock, +) import pytest @@ -18,14 +21,6 @@ from .conftest import ( run_cmd, ) -# 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, - ) - HOOK_OUTPUT = "TEST_OUTPUT" |