summaryrefslogtreecommitdiff
path: root/addons/event/tests
diff options
context:
space:
mode:
authorRichard Mathot <rim@odoo.com>2017-10-03 10:30:55 +0200
committerRichard Mathot <rim@odoo.com>2017-10-03 10:32:01 +0200
commit95d03559a27b0d15afaac9d2cdf8f4e1977ea02c (patch)
tree0015dc3660c4238fc6fb70cc3c8a0f619d2b157e /addons/event/tests
parentc2f5039f84e74de98ca6374b64f52cd47cc61f2a (diff)
[FIX][P3] *: mock is now a part of unittest
Diffstat (limited to 'addons/event/tests')
-rw-r--r--addons/event/tests/test_event_flow.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/event/tests/test_event_flow.py b/addons/event/tests/test_event_flow.py
index f9a7ad47fa4..c780a95eb34 100644
--- a/addons/event/tests/test_event_flow.py
+++ b/addons/event/tests/test_event_flow.py
@@ -7,7 +7,10 @@ from odoo.addons.event.tests.common import TestEventCommon
from odoo.exceptions import ValidationError, UserError, AccessError
from odoo.tools import mute_logger
from odoo.fields import Datetime
-from mock import patch
+try:
+ from unittest.mock import patch
+except ImportError:
+ from mock import patch
class TestEventFlow(TestEventCommon):