Import mock from unittest if on py3

This commit is contained in:
Christopher Allan Webber 2014-09-16 14:26:40 -05:00
parent f6bad0eb26
commit 3a02813c7a

View File

@ -15,7 +15,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import json
import mock
try:
import mock
except ImportError:
import unittest.mock as mock
import pytest
from webtest import AppError