From b4ffc3e1f6801b3ab8e1b3658697576f479fa614 Mon Sep 17 00:00:00 2001 From: Srinivas Reddy Thatiparthy Date: Fri, 17 Jan 2025 20:57:44 +0530 Subject: [PATCH 1/6] Comment out empty tests --- Lib/test/test_minidom.py | 68 ++++++++++++++++++++-------------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py index 3ecd1af31eea77..8b3c39133c4f00 100644 --- a/Lib/test/test_minidom.py +++ b/Lib/test/test_minidom.py @@ -395,14 +395,14 @@ def testChangeAttr(self): and el.getAttribute("spam2") == "bam2") dom.unlink() - def testGetAttrList(self): - pass + #def testGetAttrList(self): + # pass - def testGetAttrValues(self): - pass + #def testGetAttrValues(self): + # pass - def testGetAttrLength(self): - pass + #def testGetAttrLength(self): + # pass def testGetAttribute(self): dom = Document() @@ -424,7 +424,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=""" @@ -496,7 +496,7 @@ def testAttributeRepr(self): self.confirm(str(node) == repr(node)) dom.unlink() - def testTextNodeRepr(self): pass + #def testTextNodeRepr(self): pass def testWriteXML(self): str = '' @@ -601,13 +601,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("") @@ -617,25 +617,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("") @@ -656,29 +656,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("") From becd1364554b189334f5e16426047b8d518fc1f5 Mon Sep 17 00:00:00 2001 From: Srinivas Reddy Thatiparthy Date: Fri, 17 Jan 2025 21:04:17 +0530 Subject: [PATCH 2/6] Comment out empty tests --- Lib/test/test_minidom.py | 68 ++++++++++++++++++++-------------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py index 8b3c39133c4f00..4fb16fa1b5fad8 100644 --- a/Lib/test/test_minidom.py +++ b/Lib/test/test_minidom.py @@ -395,14 +395,14 @@ def testChangeAttr(self): and el.getAttribute("spam2") == "bam2") dom.unlink() - #def testGetAttrList(self): - # pass + ## def testGetAttrList(self): + ## pass - #def testGetAttrValues(self): - # pass + ## def testGetAttrValues(self): + ## pass - #def testGetAttrLength(self): - # pass + ## def testGetAttrLength(self): + ## pass def testGetAttribute(self): dom = Document() @@ -424,7 +424,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=""" @@ -496,7 +496,7 @@ def testAttributeRepr(self): self.confirm(str(node) == repr(node)) dom.unlink() - #def testTextNodeRepr(self): pass + ## def testTextNodeRepr(self): pass def testWriteXML(self): str = '' @@ -601,13 +601,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("") @@ -617,25 +617,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("") @@ -656,29 +656,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("") From 833beeabd7b41225ab31e881a5e5cfd3ad7919b9 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Sat, 18 Jan 2025 06:31:10 -0500 Subject: [PATCH 3/6] Update Lib/test/test_minidom.py --- Lib/test/test_minidom.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py index 4fb16fa1b5fad8..cbaba27476a41e 100644 --- a/Lib/test/test_minidom.py +++ b/Lib/test/test_minidom.py @@ -395,6 +395,8 @@ def testChangeAttr(self): and el.getAttribute("spam2") == "bam2") dom.unlink() +# TODO Replace empty tests below, marked with '##', with real tests. + ## def testGetAttrList(self): ## pass From 2c364f5e8577c3b814693e8d114e91b9ee1b6ed3 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Sat, 18 Jan 2025 06:40:12 -0500 Subject: [PATCH 4/6] Update Lib/test/test_minidom.py --- Lib/test/test_minidom.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py index cbaba27476a41e..814ada32f56945 100644 --- a/Lib/test/test_minidom.py +++ b/Lib/test/test_minidom.py @@ -400,11 +400,9 @@ def testChangeAttr(self): ## def testGetAttrList(self): ## pass - ## def testGetAttrValues(self): - ## pass + ## def testGetAttrValues(self): pass - ## def testGetAttrLength(self): - ## pass + ## def testGetAttrLength(self): pass def testGetAttribute(self): dom = Document() From 18de6c0165b4de199e3ce3efddc0ea1ae80c3737 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Sat, 18 Jan 2025 06:40:24 -0500 Subject: [PATCH 5/6] Update Lib/test/test_minidom.py --- Lib/test/test_minidom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py index 814ada32f56945..26865ff3ea380e 100644 --- a/Lib/test/test_minidom.py +++ b/Lib/test/test_minidom.py @@ -397,7 +397,7 @@ def testChangeAttr(self): # TODO Replace empty tests below, marked with '##', with real tests. - ## def testGetAttrList(self): + ## def testGetAttrList(self): pass ## pass ## def testGetAttrValues(self): pass From 1c6a5afb7d580af45a566877114d1882528b8d1f Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Sat, 18 Jan 2025 06:40:34 -0500 Subject: [PATCH 6/6] Update Lib/test/test_minidom.py --- Lib/test/test_minidom.py | 1 - 1 file changed, 1 deletion(-) diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py index 26865ff3ea380e..3b801c939c0ec1 100644 --- a/Lib/test/test_minidom.py +++ b/Lib/test/test_minidom.py @@ -398,7 +398,6 @@ def testChangeAttr(self): # TODO Replace empty tests below, marked with '##', with real tests. ## def testGetAttrList(self): pass - ## pass ## def testGetAttrValues(self): pass