We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bf4ff1 commit 9202027Copy full SHA for 9202027
tests/test_escaping.py
@@ -1,3 +1,5 @@
1
+import warnings
2
+from bs4 import MarkupResemblesLocatorWarning
3
from markdownify import markdownify as md
4
5
@@ -29,6 +31,9 @@ def test_single_escaping_entities():
29
31
30
32
33
def test_misc():
34
+ # ignore the bs4 warning that "1.2" or "*" looks like a filename
35
+ warnings.filterwarnings("ignore", category=MarkupResemblesLocatorWarning)
36
+
37
assert md('\\*') == r'\\\*'
38
assert md('<foo>') == r'\<foo\>'
39
assert md('# foo') == r'\# foo'
0 commit comments