diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-06-29 15:50:33 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-06-29 15:50:33 -0400 |
commit | 403a0808c5ab8e11a3d14e0e9472ee0b479c3041 (patch) | |
tree | 5b63d530c0110eb996b2be03af6afca00c16bc20 /tests/test_cmd2.py | |
parent | f6b5c61c8f53dba1961f45a71d3192b0d3e1d5da (diff) | |
download | cmd2-git-403a0808c5ab8e11a3d14e0e9472ee0b479c3041.tar.gz |
Attempt to fix pipe_to unit test on Windows (for real this time)
The previous fix was apparently broken when I checked in with Linux line endings. This approach should be independent of that.
Diffstat (limited to 'tests/test_cmd2.py')
-rw-r--r-- | tests/test_cmd2.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index 5417b4ed..d294cd90 100644 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -406,13 +406,10 @@ def test_pipe_to_shell(base_app): # Windows # Get help menu and pipe it's output to the sort shell command out = run_cmd(base_app, 'help | sort') - expected = normalize(""" - - -_relative_load edit history pause pyscript run set shortcuts -======================================== -cmdenvironment help load py quit save shell show -Documented commands (type help <topic>):""") + expected = ['', '', '_relative_load edit history pause pyscript run set shortcuts', + '========================================', + 'cmdenvironment help load py quit save shell show', + 'Documented commands (type help <topic>):'] assert out == expected else: # Mac and Linux |