aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-mail-sendmail/fake-smtp.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/perl-mail-sendmail/fake-smtp.py')
-rw-r--r--testing/perl-mail-sendmail/fake-smtp.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/testing/perl-mail-sendmail/fake-smtp.py b/testing/perl-mail-sendmail/fake-smtp.py
deleted file mode 100644
index 25929d9b8a6..00000000000
--- a/testing/perl-mail-sendmail/fake-smtp.py
+++ /dev/null
@@ -1,18 +0,0 @@
-import smtpd
-import asyncore
-
-class FakeSMTPServer(smtpd.SMTPServer):
- """A Fake smtp server"""
-
- def __init__(*args, **kwargs):
- smtpd.SMTPServer.__init__(*args, **kwargs)
-
- def process_message(*args, **kwargs):
- pass
-
-if __name__ == "__main__":
- smtp_server = FakeSMTPServer(('127.0.0.1', 2525), None)
- try:
- asyncore.loop(timeout=1, count=30)
- except KeyboardInterrupt:
- smtp_server.close()