summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_smtpnet.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-05-18 18:02:50 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-05-18 18:02:50 (GMT)
commit0d38f2e65fa627c89fc4eb5cb9246f89179413ea (patch)
treedfe9d2b095dfaf4f17214bdacc11215a164236b3 /Lib/test/test_smtpnet.py
parente0cb15ac9d2863861cad48ddaa989391f9862f20 (diff)
downloadcpython-0d38f2e65fa627c89fc4eb5cb9246f89179413ea.zip
cpython-0d38f2e65fa627c89fc4eb5cb9246f89179413ea.tar.gz
cpython-0d38f2e65fa627c89fc4eb5cb9246f89179413ea.tar.bz2
Skip test_smtpnet when ssl is not available
Diffstat (limited to 'Lib/test/test_smtpnet.py')
-rw-r--r--Lib/test/test_smtpnet.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_smtpnet.py b/Lib/test/test_smtpnet.py
index 61ecd74..7d0fa98 100644
--- a/Lib/test/test_smtpnet.py
+++ b/Lib/test/test_smtpnet.py
@@ -3,7 +3,8 @@
import unittest
from test import support
import smtplib
-import ssl
+
+ssl = support.import_module("ssl")
support.requires("network")