Skip to content

Commit

Permalink
test: ensure tests pass with a None parse_exception_ignore_pattern
Browse files Browse the repository at this point in the history
Refs: #55
  • Loading branch information
dambrosio committed Feb 7, 2025
1 parent 76830ad commit 6a1d432
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sphinxcontrib/doxylink/doxylink.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def is_url(str_to_validate: str) -> bool:

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

# Sort the entry list for use with bisect
Expand Down
2 changes: 1 addition & 1 deletion tests/test_doxylink.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def test_file_different(examples_tag_file, symbol1, symbol2):

def test_parse_tag_file(examples_tag_file):
tag_file = ET.parse(examples_tag_file)
mapping = doxylink.parse_tag_file(tag_file)
mapping = doxylink.parse_tag_file(tag_file, None)

def has_entry(name):
"""
Expand Down

0 comments on commit 6a1d432

Please sign in to comment.