
commit 9ef7a8844c00d13bd79245bdf09df3a84cfdf855 Author: Damian Johnson <atagar@torproject.org> Date: Fri Nov 27 18:33:28 2015 -0800 Line wrapping by man is platform specific Seems where the man command wraps lines varies from platform to platform... ====================================================================== FAIL: test_has_all_categories ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/atagar/Desktop/stem/test/integ/manual.py", line 212, in test_has_all_categories self.assertEqual(8, len(categories['DESCRIPTION'])) # check parsing of multi-line entries AssertionError: 8 != 14 Considering this is on my netbook my guess is that it's related to terminal dimensions. Loosening this assertion (all we really care about is that we're picking up that there's multiple lines. --- test/integ/manual.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integ/manual.py b/test/integ/manual.py index 6a01526..3fbf89a 100644 --- a/test/integ/manual.py +++ b/test/integ/manual.py @@ -209,7 +209,7 @@ class TestManual(unittest.TestCase): self.assertEqual(['tor - The second-generation onion router'], categories['NAME']) self.assertEqual(['tor [OPTION value]...'], categories['SYNOPSIS']) - self.assertEqual(8, len(categories['DESCRIPTION'])) # check parsing of multi-line entries + self.assertTrue(len(categories['DESCRIPTION']) > 5) # check parsing of multi-line entries def test_has_all_summaries(self): """