Skip to content

Commit

Permalink
another try
Browse files Browse the repository at this point in the history
  • Loading branch information
H-Shay committed May 17, 2024
1 parent 4e1cb7c commit d701d24
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/rest/client/test_media.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
from tests.test_utils import SMALL_PNG
from tests.unittest import override_config

try:
import lxml
except ImportError:
lxml = None # type: ignore[assignment]


class UnstableMediaDomainBlockingTests(unittest.HomeserverTestCase):
remote_media_id = "doesnotmatter"
Expand Down Expand Up @@ -163,10 +168,6 @@ def test_remote_media_thumbnail_normally_unblocked(self) -> None:


class UnstableURLPreviewTests(unittest.HomeserverTestCase):
try:
import lxml
except ImportError:
lxml = None # type: ignore[assignment]
if not lxml:
skip = "url preview feature requires lxml"

Expand Down

0 comments on commit d701d24

Please sign in to comment.