summaryrefslogtreecommitdiff
path: root/tests/test_cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-08-08 22:02:47 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-08-08 22:02:47 -0400
commitc4d7833dd3fb170fb95fa17e4e0336235e4e0ba3 (patch)
treee3ac8f803c333bf60980d557a7e8be59666e8d22 /tests/test_cmd2.py
parente1cde42b9f60e85233909a2648df28124c7f12e7 (diff)
downloadcmd2-git-c4d7833dd3fb170fb95fa17e4e0336235e4e0ba3.tar.gz
No longer treating empty text scripts as an error condition
Diffstat (limited to 'tests/test_cmd2.py')
-rwxr-xr-xtests/test_cmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index a856c1d6..313b4dee 100755
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -318,7 +318,7 @@ def test_run_script_with_empty_file(base_app, request):
test_dir = os.path.dirname(request.module.__file__)
filename = os.path.join(test_dir, 'scripts', 'empty.txt')
out, err = run_cmd(base_app, 'run_script {}'.format(filename))
- assert "is empty" in err[0]
+ assert not out and not err
def test_run_script_with_binary_file(base_app, request):
test_dir = os.path.dirname(request.module.__file__)