Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-63882: Comment out empty test_minidom tests #128948

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 33 additions & 34 deletions Lib/test/test_minidom.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,14 +395,13 @@ def testChangeAttr(self):
and el.getAttribute("spam2") == "bam2")
dom.unlink()

def testGetAttrList(self):
pass
# TODO Replace empty tests below, marked with '##', with real tests.

def testGetAttrValues(self):
pass
## def testGetAttrList(self): pass

def testGetAttrLength(self):
pass
## def testGetAttrValues(self): pass

## def testGetAttrLength(self): pass

def testGetAttribute(self):
dom = Document()
Expand All @@ -424,7 +423,7 @@ def testGetAttributeNS(self):
self.assertEqual(child2.getAttributeNS("http://www.python.org", "missing"),
'')

def testGetAttributeNode(self): pass
## def testGetAttributeNode(self): pass

def testGetElementsByTagNameNS(self):
d="""<foo xmlns:minidom='http://pyxml.sf.net/minidom'>
Expand Down Expand Up @@ -496,7 +495,7 @@ def testAttributeRepr(self):
self.confirm(str(node) == repr(node))
dom.unlink()

def testTextNodeRepr(self): pass
## def testTextNodeRepr(self): pass

def testWriteXML(self):
str = '<?xml version="1.0" ?><a b="c"/>'
Expand Down Expand Up @@ -601,13 +600,13 @@ def testProcessingInstruction(self):
and pi.localName is None
and pi.namespaceURI == xml.dom.EMPTY_NAMESPACE)

def testProcessingInstructionRepr(self): pass
## def testProcessingInstructionRepr(self): pass

def testTextRepr(self): pass
## def testTextRepr(self): pass

def testWriteText(self): pass
## def testWriteText(self): pass

def testDocumentElement(self): pass
## def testDocumentElement(self): pass

def testTooManyDocumentElements(self):
doc = parseString("<doc/>")
Expand All @@ -617,25 +616,25 @@ def testTooManyDocumentElements(self):
elem.unlink()
doc.unlink()

def testCreateElementNS(self): pass
## def testCreateElementNS(self): pass

def testCreateAttributeNS(self): pass
## def testCreateAttributeNS(self): pass

def testParse(self): pass
## def testParse(self): pass

def testParseString(self): pass
## def testParseString(self): pass

def testComment(self): pass
## def testComment(self): pass

def testAttrListItem(self): pass
## def testAttrListItem(self): pass

def testAttrListItems(self): pass
## def testAttrListItems(self): pass

def testAttrListItemNS(self): pass
## def testAttrListItemNS(self): pass

def testAttrListKeys(self): pass
## def testAttrListKeys(self): pass

def testAttrListKeysNS(self): pass
## def testAttrListKeysNS(self): pass

def testRemoveNamedItem(self):
doc = parseString("<doc a=''/>")
Expand All @@ -656,29 +655,29 @@ def testRemoveNamedItemNS(self):
self.assertRaises(xml.dom.NotFoundErr, attrs.removeNamedItemNS,
"http://xml.python.org/", "b")

def testAttrListValues(self): pass
## def testAttrListValues(self): pass

def testAttrListLength(self): pass
## def testAttrListLength(self): pass

def testAttrList__getitem__(self): pass
## def testAttrList__getitem__(self): pass

def testAttrList__setitem__(self): pass
## def testAttrList__setitem__(self): pass

def testSetAttrValueandNodeValue(self): pass
## def testSetAttrValueandNodeValue(self): pass

def testParseElement(self): pass
## def testParseElement(self): pass

def testParseAttributes(self): pass
## def testParseAttributes(self): pass

def testParseElementNamespaces(self): pass
## def testParseElementNamespaces(self): pass

def testParseAttributeNamespaces(self): pass
## def testParseAttributeNamespaces(self): pass

def testParseProcessingInstructions(self): pass
## def testParseProcessingInstructions(self): pass

def testChildNodes(self): pass
## def testChildNodes(self): pass

def testFirstChild(self): pass
## def testFirstChild(self): pass

def testHasChildNodes(self):
dom = parseString("<doc><foo/></doc>")
Expand Down
Loading