aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhifeng.jiang <jiang.zhifeng@zte.com.cn>2016-08-18 16:35:43 +0800
committerzhifeng.jiang <jiang.zhifeng@zte.com.cn>2016-08-18 16:35:43 +0800
commit411ab7ec5fc1500964b97cdcb7651786cded5127 (patch)
treeaaa535d2c6adaf95dcb4c991a2bb61ee2b42f730
parent2c042759aa4288dce2d9682768f603518b76bfe3 (diff)
Fix unit test 'test_cli_error' always 'pass' problem.
Change-Id: Iabb4ca83f4f4167471b57411f78520d284a38b3c Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
-rw-r--r--tests/cli_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cli_test.py b/tests/cli_test.py
index f12e8fed..bd31d987 100644
--- a/tests/cli_test.py
+++ b/tests/cli_test.py
@@ -16,5 +16,5 @@ class TestClass:
def test_cli_error(self, capfd, test_input, expected):
with pytest.raises(SystemExit):
cli(test_input)
- resout, reserr = capfd.readouterr()
- assert expected in resout
+ resout, reserr = capfd.readouterr()
+ assert expected in resout