Skip to content

Commit 7af4b51

Browse files
committed
Restore original test code that works without closing tag
1 parent 0aee4d0 commit 7af4b51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_clean.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def test_host_whitelist_slash_type_confusion(self):
321321
# creates a host_whitelist of the empty string; a malformed triple-slash
322322
# URL has an "empty host" according to urlsplit, and `"" in ""` passes.
323323
# So, don't allow user to accidentally pass a string for host_whitelist.
324-
html = '<div><iframe src="https:///evil.com/page"></iframe></div>'
324+
html = '<div><iframe src="https:///evil.com/page"></div>'
325325
with self.assertRaises(TypeError) as exc:
326326
# If this were the intended `("example.com",)` the expected
327327
# output would be '<div></div>'

0 commit comments

Comments
 (0)