Ignore stderr output in TestHelp.test_help_with_command_should_show_man_page

This commit is contained in:
Shaun Ruffell 2019-11-17 23:42:02 -06:00 committed by lauft
parent f0bda68b02
commit a021e8402f

View file

@ -61,7 +61,9 @@ class TestHelp(TestCase):
def test_help_with_command_should_show_man_page(self): def test_help_with_command_should_show_man_page(self):
"""timew help with command should show man page""" """timew help with command should show man page"""
code, out, err = self.t("help start") code, out, err = self.t("help start")
self.assertEquals(err, "") # Some versions of man have bug that displays following on stderr:
# doc/man1/timew-shorten.1.in: ignoring bogus filename
# Just check that stdout is correct here.
self.assertRegexpMatches(out, r"timew-start\(1\)\s+User Manuals\s+timew-start\(1\)") self.assertRegexpMatches(out, r"timew-start\(1\)\s+User Manuals\s+timew-start\(1\)")
def test_help_with_unknown_argument_should_show_error_message(self): def test_help_with_unknown_argument_should_show_error_message(self):