This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author zach.ware
Recipients Julian.Gindi, ajitesh.gupta, python-dev, r.david.murray, serhiy.storchaka, zach.ware
Date 2013-12-26.15:03:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Some refactoring of the tests is certainly acceptable.  If there are some tests that can be merged together, it is fine to do so; also for removing ones that don't make any sense (it's not like they've ever tested anything anyway :)).  We don't have anyone listed as an expert on xml.dom.minidom (or the xml package as a whole), so we kind of have to just muddle along on our own with this.  Any tests you come up with to fill the empty ones will be better than no tests at all.  If someone with more experience with minidom comes along later and improves your tests, that will be great; but considering how long there have been this many empty tests in the file, I don't think that's terribly likely.

In fact, having looked at the test module in a bit more detail, it's in pretty sore need of an overall modernization.  The 'confirm' method is just a thin wrapper around assertTrue with an extremely unhelpful default message, and is used almost exclusively for all tests in the file.  So currently if anything breaks the tests will say "this failed, but I won't tell you why.  Good luck figuring it out!"  'confirm' should be removed, and all of the huge conditions passed into it throughout the file should be converted into individual assert*() calls.  It also looks like we could make use of setUp/tearDown to eliminate a lot of repetition (such as creating a base Document and subsequently removing it).
Date User Action Args
2013-12-26 15:03:04zach.waresetrecipients: + zach.ware, r.david.murray, python-dev, serhiy.storchaka, Julian.Gindi, ajitesh.gupta
2013-12-26 15:03:04zach.waresetmessageid: <>
2013-12-26 15:03:04zach.warelinkissue19683 messages
2013-12-26 15:03:02zach.warecreate