Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Edit by TJR: The two patch files, by two different people deleted empty tests. Some version was merged to Python maintenance versions 2.7 and 3.3 (then on Mercurial) in Dec 2013: #63882 (comment). At that time, 3.4.0, released in March 2014, was tip. PR 24152 added docstrings to minidom.py, removed the empty tests, and revised existing tests. The author closed it due to lack of time when requested to split it into multiple PRs.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2013-11-21.15:17:39.634>labels= ['easy', 'type-feature', 'tests']
title='test_minidom has many empty tests'updated_at=<Date2021-01-07.13:48:32.590>user='https://github.com/zware'
So, it seems that there are many seemingly redundant tests and many tests whose intentions are unclear. I think this might be better suited for someone who has more experience with the xml minidom module. I have uploaded the work I have done but it is not complete.
Activity
zware commented on Nov 21, 2013
Many of the tests in test_minidom on 2.7 are empty, that is they are defined as "def testSomeFunction(self): pass".
I've marked this issue as "easy" since I suspect a lot of the tests can be either backported from 3.x, or removed if they don't exist in 3.x.
bitdancer commented on Nov 21, 2013
Well, we generally don't backport tests unless we are fixing related bugs. I think this should be left alone.
zware commented on Nov 21, 2013
In that case, the empty tests should be removed, since they currently report success on doing nothing.
ajiteshgupta commented on Nov 30, 2013
I have attached a patch. I deleted all the empty tests.
serhiy-storchaka commented on Nov 30, 2013
Rather than removing these empty tests it will be better implement them. Otherwise we can accidentally break the code.
I see a lot of empty tests on 3.x.
bitdancer commented on Nov 30, 2013
On tip it would indeed be better to implement them. The deletion is only for the released branches.
JulianGindi commented on Dec 5, 2013
I agree that they should be implemented. I'll fill them in and submit a patch in a day or so.
python-dev commented on Dec 19, 2013
New changeset 2737c0e7ba71 by Zachary Ware in branch '2.7':
Issue bpo-19683: Removed empty tests from test_minidom.
http://hg.python.org/cpython/rev/2737c0e7ba71
New changeset 5e510117b71a by Zachary Ware in branch '3.3':
Issue bpo-19683: Removed empty tests from test_minidom. Patch by Ajitesh Gupta.
http://hg.python.org/cpython/rev/5e510117b71a
zware commented on Dec 19, 2013
Thanks for the removal patch, Ajitesh!
Julian, are you still working on implementing the tests on default?
JulianGindi commented on Dec 19, 2013
I have not started yet, wasn't completely sure of the status of this. I'll get going filling in those tests to the best of my ability.
zware commented on Dec 19, 2013
Alright, sounds good.
JulianGindi commented on Dec 23, 2013
So, it seems that there are many seemingly redundant tests and many tests whose intentions are unclear. I think this might be better suited for someone who has more experience with the xml minidom module. I have uploaded the work I have done but it is not complete.
19 remaining items
gh-63882: Implement some `test_minidom` tests (#132879)
pythongh-63882: Implement some `test_minidom` tests (pythonGH-132879)
[3.13] gh-63882: Implement some `test_minidom` tests (GH-132879) (#13…
gh-63882: Break down `and` tests in `test_minidom` (#133026)
pythongh-63882: Break down `and` tests in `test_minidom` (pythonGH-13…
[3.13] gh-63882: Break down `and` tests in `test_minidom` (GH-133026) (…
Merge branch 'main' into pythongh-63882-doc_strings
pythongh-63882: Break down `and` tests in `test_minidom` (python#133026)
gh-63882: Implement empty tests in test_minidom (GH-156677)
pythongh-63882: Implement empty tests in test_minidom (pythonGH-156677)
[3.13] gh-63882: Implement empty tests in test_minidom (GH-156677) (G…
[3.14] gh-63882: Implement empty tests in test_minidom (GH-156677) (G…
[3.15] gh-63882: Implement empty tests in test_minidom (GH-156677) (#…
zware commented on Oct 9, 2026
13 years later, this has been finished! Thanks to all, and especially @serhiy-storchaka for finally getting it over the finish line.