summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlatricewilgus <43064940+latricewilgus@users.noreply.github.com>2020-07-19 13:25:00 +0200
committerGitHub <noreply@github.com>2020-07-19 07:25:00 -0400
commitdb4213b6ac6c85a916f0d58792057ad79456e043 (patch)
treeb7ac548ac9288526d2dabd126991ea6d140c0574
parent40df2bf9d0996844185d96500739cd7ecebd2505 (diff)
downloadpython-coveragepy-git-db4213b6ac6c85a916f0d58792057ad79456e043.tar.gz
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.
-rw-r--r--tests/test_cmdline.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py
index 560a3d17..cdf8e56f 100644
--- a/tests/test_cmdline.py
+++ b/tests/test_cmdline.py
@@ -861,7 +861,7 @@ class CmdLineStdoutTest(BaseCmdLineTest):
lines = out.splitlines()
self.assertIn("<pyfile>", lines[0])
self.assertIn("--timid", out)
- self.assertGreater(len(lines), 30)
+ self.assertGreater(len(lines), 20)
self.assertEqual(lines[-1], "Full documentation is at {}".format(__url__))
def test_unknown_topic(self):