diff --git a/tests/test_escaping.py b/tests/test_escaping.py index 6eb8e07..6b21f68 100644 --- a/tests/test_escaping.py +++ b/tests/test_escaping.py @@ -1,3 +1,5 @@ +import warnings +from bs4 import MarkupResemblesLocatorWarning from markdownify import markdownify as md @@ -29,6 +31,9 @@ def test_single_escaping_entities(): def test_misc(): + # ignore the bs4 warning that "1.2" or "*" looks like a filename + warnings.filterwarnings("ignore", category=MarkupResemblesLocatorWarning) + assert md('\\*') == r'\\\*' assert md('<foo>') == r'\' assert md('# foo') == r'\# foo'