mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Ignore stderr output in TestHelp.test_help_with_command_should_show_man_page
This commit is contained in:
parent
f0bda68b02
commit
a021e8402f
1 changed files with 3 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue