Skip test for versions affected by bug #25195

issue6594
review35481002
This commit is contained in:
Cédric Krier
2017-06-27 12:41:22 +02:00
parent af9651c90c
commit ee38354856
+3
View File
@@ -1,5 +1,6 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import sys
import unittest
try:
from unittest.mock import patch, ANY
@@ -28,6 +29,8 @@ class NotificationEmailTestCase(ModuleTestCase):
config.set('email', 'from', FROM)
self.addCleanup(lambda: config.set('email', 'from', reset_from))
@unittest.skipIf(
(3, 5, 0) <= sys.version_info < (3, 5, 2), "python bug #25195")
@with_transaction()
def test_notification_email(self):
"Test email notificiation is sent on trigger"