summaryrefslogtreecommitdiff
path: root/src/mailman/commands/tests/test_conf.py
diff options
context:
space:
mode:
authorBarry Warsaw2013-10-18 17:44:31 -0400
committerBarry Warsaw2013-10-18 17:44:31 -0400
commitb277307e38c610a3bbe3d140a4fbaef5641a34a3 (patch)
treeb44aff82a6d5754605da1fe9752342fb604151b2 /src/mailman/commands/tests/test_conf.py
parent6644023236f207652519a430109a1f6f2893370f (diff)
downloadmailman-b277307e38c610a3bbe3d140a4fbaef5641a34a3.tar.gz
mailman-b277307e38c610a3bbe3d140a4fbaef5641a34a3.tar.zst
mailman-b277307e38c610a3bbe3d140a4fbaef5641a34a3.zip
Diffstat (limited to 'src/mailman/commands/tests/test_conf.py')
-rw-r--r--src/mailman/commands/tests/test_conf.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mailman/commands/tests/test_conf.py b/src/mailman/commands/tests/test_conf.py
index 307151c74..04ce4c9b5 100644
--- a/src/mailman/commands/tests/test_conf.py
+++ b/src/mailman/commands/tests/test_conf.py
@@ -110,4 +110,9 @@ class TestConf(unittest.TestCase):
self.command.process(self.args)
last_line = ''
for line in output.getvalue().splitlines():
- self.assertTrue(line > last_line)
+ if not line.startswith('['):
+ # This is a continuation line. --sort doesn't sort these.
+ continue
+ self.assertTrue(line > last_line,
+ '{} !> {}'.format(line, last_line))
+ last_line = line