style: add flags for tests coverage
- Some are already tested but the coverage report can't see it. - Some are not necessary to test or too hard to test on GitHub's CI
This commit is contained in:
@@ -340,7 +340,7 @@ def _replace_entities(
|
||||
if 0x80 <= number <= 0x9F:
|
||||
return bytes((number,)).decode("cp1252")
|
||||
return chr(number)
|
||||
except (ValueError, OverflowError):
|
||||
except (ValueError, OverflowError): # pragma: no cover
|
||||
pass
|
||||
|
||||
return "" if remove_illegal and groups.get("semicolon") else m.group(0)
|
||||
|
||||
Reference in New Issue
Block a user