~sambuddhabasu1/mailman/fix_mailman_run_error

« back to all changes in this revision

Viewing changes to src/mailman/commands/tests/test_conf.py

  • Committer: Barry Warsaw
  • Date: 2013-10-18 21:44:31 UTC
  • Revision ID: barry@list.org-20131018214431-f9t3287twcvdckmq
 * When --sort is used, watch out for continuation lines, which shouldn't get
   sorted.

 * Fix stderr output in sub-runners, and move the -e test option to -E.

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
            self.command.process(self.args)
111
111
        last_line = ''
112
112
        for line in output.getvalue().splitlines():
113
 
            self.assertTrue(line > last_line)
 
113
            if not line.startswith('['):
 
114
                # This is a continuation line.  --sort doesn't sort these.
 
115
                continue
 
116
            self.assertTrue(line > last_line,
 
117
                            '{} !> {}'.format(line, last_line))
 
118
            last_line = line