GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test_minidom has many empty tests · Issue #63882 · python/cpython

test_minidom has many empty tests #63882

New issue
Copy link
New issue
Copy link
Closed
Closed
test_minidom has many empty tests#63882
Copy link
Labels
easytestsTests in the Lib/test dirTests in the Lib/test dirtopic-XMLtype-featureA feature request or enhancementA feature request or enhancement

Description

@zware
zware
opened on Nov 21, 2013
Issue body actions
BPO 19683
Nosy @bitdancer, @karlcow, @zware, @serhiy-storchaka
PRs
  • gh-63882: Adds tests for xml.dom.minidom #24152
  • Files
  • issue19683.patch
  • issue19683.patch
  • 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 = None
    closed_at = None
    created_at = <Date 2013-11-21.15:17:39.634>
    labels = ['easy', 'type-feature', 'tests']
    title = 'test_minidom has many empty tests'
    updated_at = <Date 2021-01-07.13:48:32.590>
    user = 'https://github.com/zware'

    bugs.python.org fields:

    activity = <Date 2021-01-07.13:48:32.590>
    actor = 'karlcow'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Tests']
    creation = <Date 2013-11-21.15:17:39.634>
    creator = 'zach.ware'
    dependencies = []
    files = ['32901', '33258']
    hgrepos = []
    issue_num = 19683
    keywords = ['patch', 'easy']
    message_count = 21.0
    messages = ['203637', '203642', '203643', '204781', '204806', '204834', '205274', '206637', '206639', '206641', '206642', '206873', '206939', '206979', '209897', '209899', '353793', '353835', '384561', '384575', '384576']
    nosy_count = 7.0
    nosy_names = ['r.david.murray', 'karlcow', 'python-dev', 'zach.ware', 'serhiy.storchaka', 'Julian.Gindi', 'ajitesh.gupta']
    pr_nums = ['24152']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue19683'
    versions = ['Python 3.4']

    Linked PRs

    • gh-63882: Comment out empty test_minidom tests #128948
    • gh-63882: Implement some test_minidom tests #132879
    • gh-63882: Use self.assert* in test_minidom #133000
    • [3.13] gh-63882: Use self.assert* methods in test_minidom (GH-133000) #133024
    • gh-63882: Break down and tests in test_minidom #133026
    • [3.13] gh-63882: Implement some test_minidom tests (GH-132879) #133029
    • [3.13] gh-63882: Break down and tests in test_minidom (GH-133026) #133451
    • gh-63882: Implement empty tests in test_minidom #156677
    • [3.14] gh-63882: Implement empty tests in test_minidom (GH-156677) #157426
    • [3.13] gh-63882: Implement empty tests in test_minidom (GH-156677) #157427
    • [3.15] gh-63882: Implement empty tests in test_minidom (GH-156677) #157428

    Activity

    Next
    1. zware commented on Nov 21, 2013

      @zware
      zware
      on Nov 21, 2013
      MemberAuthor
      More actions

      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.

    2. zware
      added
      testsTests in the Lib/test dirTests in the Lib/test dir
      easy
      type-featureA feature request or enhancementA feature request or enhancement
      on Nov 21, 2013
    3. bitdancer commented on Nov 21, 2013

      @bitdancer
      bitdancer
      on Nov 21, 2013
      Member
      More actions

      Well, we generally don't backport tests unless we are fixing related bugs. I think this should be left alone.

    4. zware commented on Nov 21, 2013

      @zware
      zware
      on Nov 21, 2013
      MemberAuthor
      More actions

      In that case, the empty tests should be removed, since they currently report success on doing nothing.

    5. ajiteshgupta commented on Nov 30, 2013

      @ajiteshgupta
      ajiteshguptamannequin
      on Nov 30, 2013
      Mannequin
      More actions

      I have attached a patch. I deleted all the empty tests.

    6. serhiy-storchaka commented on Nov 30, 2013

      @serhiy-storchaka
      serhiy-storchaka
      on Nov 30, 2013
      Member
      More actions

      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.

    7. bitdancer commented on Nov 30, 2013

      @bitdancer
      bitdancer
      on Nov 30, 2013
      Member
      More actions

      On tip it would indeed be better to implement them. The deletion is only for the released branches.

    8. JulianGindi commented on Dec 5, 2013

      @JulianGindi
      JulianGindimannequin
      on Dec 5, 2013
      Mannequin
      More actions

      I agree that they should be implemented. I'll fill them in and submit a patch in a day or so.

    9. python-dev commented on Dec 19, 2013

      @python-dev
      python-devmannequin
      on Dec 19, 2013
      Mannequin
      More actions

      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

    10. zware commented on Dec 19, 2013

      @zware
      zware
      on Dec 19, 2013
      MemberAuthor
      More actions

      Thanks for the removal patch, Ajitesh!

      Julian, are you still working on implementing the tests on default?

    11. JulianGindi commented on Dec 19, 2013

      @JulianGindi
      JulianGindimannequin
      on Dec 19, 2013
      Mannequin
      More actions

      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.

    12. zware commented on Dec 19, 2013

      @zware
      zware
      on Dec 19, 2013
      MemberAuthor
      More actions

      Alright, sounds good.

    13. JulianGindi commented on Dec 23, 2013

      @JulianGindi
      JulianGindimannequin
      on Dec 23, 2013
      Mannequin
      More actions

      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.

    14. 19 remaining items

    15. hugovk
      added a commit that references this issue on Apr 26, 2025

      gh-63882: Implement some `test_minidom` tests (#132879)

      ee033d4
    16. miss-islington
      added a commit that references this issue on Apr 26, 2025

      pythongh-63882: Implement some `test_minidom` tests (pythonGH-132879)

      0496125
    17. hugovk
      added a commit that references this issue on Apr 26, 2025

      [3.13] gh-63882: Implement some `test_minidom` tests (GH-132879) (#13…

      fdcaaad
    18. hugovk
      added a commit that references this issue on May 5, 2025

      gh-63882: Break down `and` tests in `test_minidom` (#133026)

      e294e16
    19. miss-islington
      added a commit that references this issue on May 5, 2025

      pythongh-63882: Break down `and` tests in `test_minidom` (pythonGH-13…

      906a6d6
    20. hugovk
      added a commit that references this issue on May 5, 2025

      [3.13] gh-63882: Break down `and` tests in `test_minidom` (GH-133026) (…

      d84a762
    21. srinivasreddy
      added a commit that references this issue on May 13, 2025

      Merge branch 'main' into pythongh-63882-doc_strings

      c68cb4d
    22. Pranjal095
      added a commit that references this issue on Jul 12, 2025

      pythongh-63882: Break down `and` tests in `test_minidom` (python#133026)

      7677686
    23. serhiy-storchaka
      added a commit that references this issue on Sep 13, 2026

      gh-63882: Implement empty tests in test_minidom (GH-156677)

      f154574
    24. johnslavik
      added a commit that references this issue on Sep 14, 2026

      pythongh-63882: Implement empty tests in test_minidom (pythonGH-156677)

      b30ff9c
    25. serhiy-storchaka
      added 2 commits that reference this issue on Sep 14, 2026

      [3.13] gh-63882: Implement empty tests in test_minidom (GH-156677) (G…

      c698c63

      [3.14] gh-63882: Implement empty tests in test_minidom (GH-156677) (G…

      a4f6216
    26. hugovk
      added a commit that references this issue on Sep 15, 2026

      [3.15] gh-63882: Implement empty tests in test_minidom (GH-156677) (#…

      04347ef
    27. zware commented on Oct 9, 2026

      @zware
      zware
      on Oct 9, 2026
      MemberAuthor
      More actions

      13 years later, this has been finished! Thanks to all, and especially @serhiy-storchaka for finally getting it over the finish line.

      Reacted by Terry Jan Reedy and Hugo van Kemenade
    28. zware
      closed this as completedon Oct 9, 2026
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      easytestsTests in the Lib/test dirTests in the Lib/test dirtopic-XMLtype-featureA feature request or enhancementA feature request or enhancement

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions

        You are visitor 01402503 — GeezerVison does not store the pages you look up.
        Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.