diff --git a/trytond/tests/test_sendmail.py b/trytond/tests/test_sendmail.py index 6c6047fcc9..6445518428 100644 --- a/trytond/tests/test_sendmail.py +++ b/trytond/tests/test_sendmail.py @@ -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: