Skip test_get_smtp_server_extra_parameters on python version < 2.7.4
Older Python version does not parse query for smtp scheme. https://bugs.python.org/issue9374
This commit is contained in:
1 parent
5af7ff1117
commit
96e8ceb7c7
1 file changed
+2
@@ -2,6 +2,7 @@
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
import unittest
|
||||
import smtplib
|
||||
import sys
|
||||
from email.message import Message
|
||||
from mock import Mock, patch, call
|
||||
|
||||
@@ -67,6 +68,7 @@ class SendmailTestCase(unittest.TestCase):
|
||||
SMTP.assert_called_once_with('localhost', 25)
|
||||
server.starttls.assert_called_once_with()
|
||||
|
||||
@unittest.skipIf(sys.version_info < (2, 7, 4), "python bug #9374")
|
||||
def test_get_smtp_server_extra_parameters(self):
|
||||
'Test get_smtp_server uri extra parameters'
|
||||
with patch.object(smtplib, 'SMTP') as SMTP:
|
||||
|
||||
Reference in new issue
Block a user