diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-05-11 21:52:39 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-05-11 21:52:39 -0400 |
commit | 75ca51652af1fa2ee8b8374f99cf5a75df4e0d9a (patch) | |
tree | f60a201d10d51fec6007702f655ed657e8165751 | |
parent | 3a2af4d81effe0c8701146c98d12b08dc0622214 (diff) | |
download | cmd2-git-75ca51652af1fa2ee8b8374f99cf5a75df4e0d9a.tar.gz |
Fix Windows unit tests
-rwxr-xr-x | cmd2.py | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -34,7 +34,6 @@ import optparse import os import platform import re -import readline import shlex import six import subprocess @@ -80,6 +79,13 @@ try: except ImportError: ipython_available = False +# Try to import readline, but allow failure for convenience in Windows unit testing +# Note: If this actually fails, you should install readline on Linux or Mac or pyreadline on Windows +try: + import readline +except ImportError: + pass + __version__ = '0.7.1a' # Pyparsing enablePackrat() can greatly speed up parsing, but problems have been seen in Python 3 in the past |