Commit f6ce9b90 authored by Jacek Sowiński's avatar Jacek Sowiński

Use unittest.mock wherever it's available

Since python 3.3 `mock` is part of standard library. Let's try to use
that before looking for third-party installation of it.
parent 4a7e8aed
...@@ -15,7 +15,12 @@ ...@@ -15,7 +15,12 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import unittest import unittest
import mock
try:
from unittest import mock
except ImportError:
import mock
from six import u from six import u
import os import os
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment