mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Skip test_smtpnet when ssl is not available
This commit is contained in:
parent
e0cb15ac9d
commit
0d38f2e65f
1 changed files with 2 additions and 1 deletions
|
@ -3,7 +3,8 @@
|
||||||
import unittest
|
import unittest
|
||||||
from test import support
|
from test import support
|
||||||
import smtplib
|
import smtplib
|
||||||
import ssl
|
|
||||||
|
ssl = support.import_module("ssl")
|
||||||
|
|
||||||
support.requires("network")
|
support.requires("network")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue