Skip to content

Commit cea2f6c

Browse files
committed
MNT: Skip coverage of abstract methods
1 parent f8c940d commit cea2f6c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nibabel/xmlutils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class XmlSerializable:
1919

2020
def _to_xml_element(self) -> Element:
2121
"""Output should be a xml.etree.ElementTree.Element"""
22-
raise NotImplementedError
22+
raise NotImplementedError # pragma: no cover
2323

2424
def to_xml(self, enc='utf-8', **kwargs) -> bytes:
2525
r"""Generate an XML bytestring with a given encoding.
@@ -108,10 +108,10 @@ def parse(self, string=None, fname=None, fptr=None):
108108
parser.ParseFile(fptr)
109109

110110
def StartElementHandler(self, name, attrs):
111-
raise NotImplementedError
111+
raise NotImplementedError # pragma: no cover
112112

113113
def EndElementHandler(self, name):
114-
raise NotImplementedError
114+
raise NotImplementedError # pragma: no cover
115115

116116
def CharacterDataHandler(self, data):
117-
raise NotImplementedError
117+
raise NotImplementedError # pragma: no cover

0 commit comments

Comments
 (0)