Skip to content

Commit 6a1d432

Browse files
committed
test: ensure tests pass with a None parse_exception_ignore_pattern
Refs: #55
1 parent 76830ad commit 6a1d432

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sphinxcontrib/doxylink/doxylink.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def is_url(str_to_validate: str) -> bool:
134134

135135
class SymbolMap:
136136
"""A SymbolMap maps symbols to Entries."""
137-
def __init__(self, xml_doc: ET.ElementTree, parse_exception_ignore_pattern: Union['re.Pattern', None]) -> None:
137+
def __init__(self, xml_doc: ET.ElementTree, parse_exception_ignore_pattern: Union['re.Pattern', None] = None) -> None:
138138
entries = parse_tag_file(xml_doc, parse_exception_ignore_pattern)
139139

140140
# Sort the entry list for use with bisect

tests/test_doxylink.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def test_file_different(examples_tag_file, symbol1, symbol2):
9090

9191
def test_parse_tag_file(examples_tag_file):
9292
tag_file = ET.parse(examples_tag_file)
93-
mapping = doxylink.parse_tag_file(tag_file)
93+
mapping = doxylink.parse_tag_file(tag_file, None)
9494

9595
def has_entry(name):
9696
"""

0 commit comments

Comments
 (0)