Skip to content

Commit db4213b

Browse files
author
latricewilgus
authored
CmdLineStdoutTest::test_cmd_help: test for at least 20 lines (#1013)
The number of lines in the help output of a command depends on the terminal size. The smaller the more line breaks. The minimum number of lines for the current help message is 23. Currently we are checking for at least 30 lines, yielding to failures on large terminals. Reduce the number (currently 30) to 20 to have some leeway for the future.
1 parent 40df2bf commit db4213b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_cmdline.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ def test_cmd_help(self):
861861
lines = out.splitlines()
862862
self.assertIn("<pyfile>", lines[0])
863863
self.assertIn("--timid", out)
864-
self.assertGreater(len(lines), 30)
864+
self.assertGreater(len(lines), 20)
865865
self.assertEqual(lines[-1], "Full documentation is at {}".format(__url__))
866866

867867
def test_unknown_topic(self):

0 commit comments

Comments
 (0)