diff --git a/common/djangoapps/student/tests/test_create_account.py b/common/djangoapps/student/tests/test_create_account.py index fb9e922e42..7eb9b55772 100644 --- a/common/djangoapps/student/tests/test_create_account.py +++ b/common/djangoapps/student/tests/test_create_account.py @@ -3,6 +3,7 @@ import json import unittest from datetime import datetime +from importlib import import_module import ddt import mock @@ -13,7 +14,6 @@ from django.core.urlresolvers import reverse from django.test import TestCase, TransactionTestCase from django.test.client import RequestFactory from django.test.utils import override_settings -from django.utils.importlib import import_module from mock import patch import student diff --git a/openedx/core/djangoapps/safe_sessions/testing.py b/openedx/core/djangoapps/safe_sessions/testing.py index 9e9233db97..6ad6270b56 100644 --- a/openedx/core/djangoapps/safe_sessions/testing.py +++ b/openedx/core/djangoapps/safe_sessions/testing.py @@ -59,7 +59,7 @@ def safe_cookie_test_session_patch(): """ from django.apps import apps from django.conf import settings - from django.utils.importlib import import_module + from importlib import import_module from .middleware import SafeCookieData, SafeCookieError, SafeSessionMiddleware if apps.is_installed('django.contrib.sessions'):