diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-06-09 18:57:13 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-06-09 18:57:13 -0400 |
commit | 6f06dd97b30ba2bed40d580f3dc966dc9be103fd (patch) | |
tree | d9ebaa6b5b91dee56b7e204807ad610a4e39d944 /tests/test_cmd2.py | |
parent | dd299bf5bf21b175ffdd2caae63cfa8bf1a85c34 (diff) | |
download | cmd2-git-6f06dd97b30ba2bed40d580f3dc966dc9be103fd.tar.gz |
Working on improving type hinting
Also:
- Refactored perror() to remove a rarely used optional argument which was unecessary
Diffstat (limited to 'tests/test_cmd2.py')
-rw-r--r-- | tests/test_cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index 37592da1..941f7339 100644 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -230,7 +230,7 @@ def test_pyscript_with_nonexist_file(base_app, capsys): python_script = 'does_not_exist.py' run_cmd(base_app, "pyscript {}".format(python_script)) out, err = capsys.readouterr() - assert err.startswith('ERROR: [Errno 2] No such file or directory:') + assert err.startswith("EXCEPTION of type 'FileNotFoundError' occurred with message:") def test_pyscript_with_exception(base_app, capsys, request): test_dir = os.path.dirname(request.module.__file__) |