From d55f3ba633508ed1cfcbbfea86e46ae9592843c3 Mon Sep 17 00:00:00 2001 From: Donato Lucia Date: Thu, 7 Apr 2016 16:35:39 +0200 Subject: [PATCH] fixed assertion with err instead out --- tests/test_main.py.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_main.py.tpl b/tests/test_main.py.tpl index 706d94f..9ccf0e9 100644 --- a/tests/test_main.py.tpl +++ b/tests/test_main.py.tpl @@ -33,6 +33,6 @@ class TestMain(object): main(['progname', versionarg]) out, err = capsys.readouterr() # Should print out version. - assert err == '{0} {1}\n'.format(metadata.project, metadata.version) + assert out == '{0} {1}\n'.format(metadata.project, metadata.version) # Should exit with zero return code. assert exc_info.value.code == 0