author | Mads Kiilerich <mads@kiilerich.com> |
Mon, 26 Jun 2023 16:45:13 +0200 | |
branch | stable |
changeset 50731 | 8823e4d411ba |
parent 50730 | cfb6ca77e6bc |
child 50732 | b3a5af04da35 |
--- a/tests/dummysmtpd.py Mon Jun 26 15:51:39 2023 +0200 +++ b/tests/dummysmtpd.py Mon Jun 26 16:45:13 2023 +0200 @@ -99,8 +99,8 @@ op.add_option('--logfile', metavar='FILE') opts, args = op.parse_args() - if opts.tls == 'smtps' and not opts.certificate: - op.error('--certificate must be specified') + if (opts.tls == 'smtps') != bool(opts.certificate): + op.error('--certificate must be specified with --tls=smtps') addr = (opts.address, opts.port)