From 4fc7b2f640d90c714097837a5fd87e6eb3e875e3 Mon Sep 17 00:00:00 2001 From: Jawayria Date: Fri, 12 Feb 2021 18:31:22 +0500 Subject: [PATCH] BOM-2351: Removed unused imports from common/lib/{capa, safe_lxml, symmath, conftest.py} --- common/lib/capa/capa/tests/test_html_render.py | 3 --- common/lib/capa/capa/tests/test_targeted_feedback.py | 3 --- common/lib/conftest.py | 2 -- common/lib/symmath/symmath/formula.py | 1 - 4 files changed, 9 deletions(-) diff --git a/common/lib/capa/capa/tests/test_html_render.py b/common/lib/capa/capa/tests/test_html_render.py index 17bc9878dd..c4768221d7 100644 --- a/common/lib/capa/capa/tests/test_html_render.py +++ b/common/lib/capa/capa/tests/test_html_render.py @@ -10,9 +10,6 @@ import unittest import ddt import mock from lxml import etree - -# Changes formatting of empty elements; import here to avoid test order dependence -import xmodule.modulestore.xml # pylint: disable=unused-import from capa.tests.helpers import new_loncapa_problem, test_capa_system from openedx.core.djangolib.markup import HTML diff --git a/common/lib/capa/capa/tests/test_targeted_feedback.py b/common/lib/capa/capa/tests/test_targeted_feedback.py index 09df597b65..343825533d 100644 --- a/common/lib/capa/capa/tests/test_targeted_feedback.py +++ b/common/lib/capa/capa/tests/test_targeted_feedback.py @@ -6,9 +6,6 @@ i.e. those with the element import textwrap import unittest - -# Changes formatting of empty elements; import here to avoid test order dependence -import xmodule.modulestore.xml # pylint: disable=unused-import from capa.tests.helpers import load_fixture, new_loncapa_problem, test_capa_system diff --git a/common/lib/conftest.py b/common/lib/conftest.py index 03bd8596e5..daab9ba264 100644 --- a/common/lib/conftest.py +++ b/common/lib/conftest.py @@ -7,8 +7,6 @@ import pytest from safe_lxml import defuse_xml_libs -from openedx.core.pytest_hooks import pytest_configure # pylint: disable=unused-import - defuse_xml_libs() diff --git a/common/lib/symmath/symmath/formula.py b/common/lib/symmath/symmath/formula.py index d72389b72c..1169113251 100644 --- a/common/lib/symmath/symmath/formula.py +++ b/common/lib/symmath/symmath/formula.py @@ -21,7 +21,6 @@ import unicodedata #import subprocess from copy import deepcopy from functools import reduce -from xml.sax.saxutils import unescape # lint-amnesty, pylint: disable=unused-import import six import sympy