Fix mock import for Python3

This commit is contained in:
Cédric Krier committed 2016-06-27 19:48:32 +02:00
1 parent 891d51ba2f
commit 6c9d199cbc
1 file changed
+4 -1
+4 -1
View File
@@ -3,7 +3,10 @@
import unittest
from mock import patch, ANY
try:
from unittest.mock import patch, ANY
except ImportError:
from mock import patch, ANY
from trytond.tests.test_tryton import ModuleTestCase, with_transaction
from trytond.tests.test_tryton import suite as test_suite