diff --git a/openassessment/xblock/load_static.py b/openassessment/xblock/load_static.py index 1bf39a26b6..b6abac2e04 100644 --- a/openassessment/xblock/load_static.py +++ b/openassessment/xblock/load_static.py @@ -6,10 +6,7 @@ from urllib.parse import urlparse from django.conf import settings -try: - from xblock.utils.resources import ResourceLoader -except ModuleNotFoundError: - from xblockutils.resources import ResourceLoader +from xblock.utils.resources import ResourceLoader logger = logging.getLogger(__name__) # pylint: disable=invalid-name diff --git a/openassessment/xblock/test/test_openassessment.py b/openassessment/xblock/test/test_openassessment.py index f1b0841a05..6fc7759444 100644 --- a/openassessment/xblock/test/test_openassessment.py +++ b/openassessment/xblock/test/test_openassessment.py @@ -5,8 +5,6 @@ import datetime as dt from io import StringIO import json -import unittest -import importlib from unittest import mock from unittest.mock import MagicMock, Mock, PropertyMock, patch from django.test.utils import override_settings