From 411ab7ec5fc1500964b97cdcb7651786cded5127 Mon Sep 17 00:00:00 2001 From: "zhifeng.jiang" Date: Thu, 18 Aug 2016 16:35:43 +0800 Subject: Fix unit test 'test_cli_error' always 'pass' problem. Change-Id: Iabb4ca83f4f4167471b57411f78520d284a38b3c Signed-off-by: zhifeng.jiang --- tests/cli_test.py | 4 ++-- 1 file 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 -- cgit 1.2.3-korg