diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2016-12-09 16:54:10 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2016-12-09 16:54:10 -0500 |
commit | 06331d3ab75feb807dc48d824cbd54898a6b6cdd (patch) | |
tree | 24034e3f0ff7cd94239d575fe046acc550e7a49f /tests | |
parent | b9658cff197beff5a00632a68ecf85838879835e (diff) | |
download | cmd2-git-06331d3ab75feb807dc48d824cbd54898a6b6cdd.tar.gz |
First stage of refactoring to support full simultaneous Python 2 and 3 compatibility via use of the six module.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/conftest.py | 1 | ||||
-rw-r--r-- | tests/test_cmd2.py | 9 | ||||
-rw-r--r-- | tests/test_transcript.py | 1 |
3 files changed, 5 insertions, 6 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 55700914..e1204086 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,3 +1,4 @@ +# coding=utf-8 # # Cmd2 unit/functional testing # diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index 8435ac1a..0deb9a0b 100644 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -1,3 +1,4 @@ +# coding=utf-8 # # Cmd2 unit/functional testing # @@ -6,14 +7,10 @@ import mock import pytest - from conftest import run_cmd, _normalize -import cmd2 +from six import StringIO -try: - from StringIO import StringIO -except ImportError: - from io import StringIO +import cmd2 def test_ver(): diff --git a/tests/test_transcript.py b/tests/test_transcript.py index 06cf50b6..ebd13a59 100644 --- a/tests/test_transcript.py +++ b/tests/test_transcript.py @@ -1,3 +1,4 @@ +# coding=utf-8 # # Cmd2 functional testing based on transcript # |