Import mock from unittest if on py3
This commit is contained in:
parent
f6bad0eb26
commit
3a02813c7a
@ -15,7 +15,10 @@
|
|||||||
# 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 json
|
import json
|
||||||
|
|
||||||
import mock
|
try:
|
||||||
|
import mock
|
||||||
|
except ImportError:
|
||||||
|
import unittest.mock as mock
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from webtest import AppError
|
from webtest import AppError
|
||||||
|
Loading…
x
Reference in New Issue
Block a user