summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2019-06-14 20:40:49 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2019-06-14 20:40:49 -0400
commit0598412960afcbd5fbe42d6cf100b7af658cd959 (patch)
treedb3b490fa05ef029012c02aa11a061b2634f1063 /tests
parentddd07f9cd6d72baca1232ae98856cf3b3d564706 (diff)
downloadcmd2-git-0598412960afcbd5fbe42d6cf100b7af658cd959.tar.gz
Deprecate support for Python 3.4 and begin testing with Python 3.8 beta
Diffstat (limited to 'tests')
-rw-r--r--tests/conftest.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 517e2865..1e124219 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -3,6 +3,7 @@
Cmd2 unit/functional testing
"""
import sys
+from contextlib import redirect_stdout, redirect_stderr
from typing import Optional
from unittest import mock
@@ -11,12 +12,6 @@ from pytest import fixture
import cmd2
from cmd2.utils import StdSim
-# Python 3.4 require contextlib2 for temporarily redirecting stderr and stdout
-if sys.version_info < (3, 5):
- # noinspection PyUnresolvedReferences
- from contextlib2 import redirect_stdout, redirect_stderr
-else:
- from contextlib import redirect_stdout, redirect_stderr
# Prefer statically linked gnureadline if available (for macOS compatibility due to issues with libedit)
try: