diff --git a/mediagoblin/tests/test_api.py b/mediagoblin/tests/test_api.py index 329c387d..31bf50b3 100644 --- a/mediagoblin/tests/test_api.py +++ b/mediagoblin/tests/test_api.py @@ -15,7 +15,10 @@ # along with this program. If not, see . import json -import mock +try: + import mock +except ImportError: + import unittest.mock as mock import pytest from webtest import AppError