Skip test_smtpnet when ssl is not available
This commit is contained in:
parent
e0cb15ac9d
commit
0d38f2e65f
|
@ -3,7 +3,8 @@
|
|||
import unittest
|
||||
from test import support
|
||||
import smtplib
|
||||
import ssl
|
||||
|
||||
ssl = support.import_module("ssl")
|
||||
|
||||
support.requires("network")
|
||||
|
||||
|
|
Loading…
Reference in New Issue