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 — gh-63882: Comment out empty `test_minidom` tests by srinivasreddy · Pull Request #128948 · python/cpython

Conversation

@srinivasreddy

@srinivasreddy srinivasreddy commented Jan 17, 2025 •
edited by terryjreedy
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Given the absence of immediate replacements, this was considered better than deletion.

  • Issue: test_minidom has many empty tests #63882

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
srinivasreddy added 2 commits January 17, 2025 20:57
@srinivasreddy
Comment out empty tests
b4ffc3e
@srinivasreddy
Comment out empty tests
becd136
@bedevere-app bedevere-app Bot added tests Tests in the Lib/test dir awaiting review labels Jan 17, 2025
@srinivasreddy

srinivasreddy commented Jan 17, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

This is the second item from the action items proposed by @terryjreedy (#63882 (comment))

  1. Minidom docstrings issue gh-128508: Add some docstrings to xml.dom.minidom #128477
  2. Comment out the empty tests gh-63882: Comment out empty test_minidom tests #128948
  3. Test revisions - to be addressed in later pr
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@srinivasreddy srinivasreddy changed the title gh-19683: Comment out empty tests gh-63882: Comment out empty tests Jan 17, 2025
@bedevere-app bedevere-app Bot mentioned this pull request Jan 17, 2025
test_minidom has many empty tests #63882
Closed
@StanFromIreland

StanFromIreland commented Jan 17, 2025

Copy link
Copy Markdown
Member

@terryjreedy (I can’t request a review in any other way)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

StanFromIreland
StanFromIreland approved these changes Jan 17, 2025
View reviewed changes

@StanFromIreland StanFromIreland left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think all of them are included. Looks good to me!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bedevere-app bedevere-app Bot added awaiting core review and removed awaiting review labels Jan 17, 2025
@picnixz

picnixz commented Jan 17, 2025

Copy link
Copy Markdown
Member

Why are we using ## instead of a simple # for commenting out the test? Is there any plan of actually implementing those tests in the future? can we add some # TODO as well so that we can find them easily in the future?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@picnixz picnixz added the skip news label Jan 17, 2025
@StanFromIreland

StanFromIreland commented Jan 17, 2025

Copy link
Copy Markdown
Member

@picnixz This was requested by Terry in his comment on the issue. I guess it is easier to find them?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@picnixz picnixz changed the title gh-63882: Comment out empty tests gh-63882: Comment out empty test_minidom tests Jan 17, 2025
@picnixz

picnixz commented Jan 17, 2025

Copy link
Copy Markdown
Member

I think I'll me comfortable with an explicit "TODO" since we also used # CRASH for the test C API to make them easier to find (with a ##, we need to filter out the results but with # TODO, we know that's a TODO).


Ok, I've seen that #63882 (comment) is actually the comment that explained the different steps to do (it was hidden by GH). So there's a plan to implement something. If the tests are meant to be implemented in a short future, ## is fine, but if it's not, then maybe # TODO is better.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

terryjreedy
terryjreedy reviewed Jan 18, 2025
View reviewed changes

@terryjreedy terryjreedy left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double hashes, '##', are an old standard for (temporarily) commenting out code with something other than normal code comments. I added a "# TODO" comment.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

picnixz and srinivasreddy reacted with heart emoji
All reactions
  • ❤️ 2 reactions
Comment thread Lib/test/test_minidom.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@terryjreedy
Update Lib/test/test_minidom.py
833beea
terryjreedy
terryjreedy reviewed Jan 18, 2025
View reviewed changes
Comment thread Lib/test/test_minidom.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

terryjreedy
terryjreedy reviewed Jan 18, 2025
View reviewed changes
Comment thread Lib/test/test_minidom.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

terryjreedy
terryjreedy reviewed Jan 18, 2025
View reviewed changes

@terryjreedy terryjreedy left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make the first 3 tests 1 line as with all the others.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread Lib/test/test_minidom.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

terryjreedy added 3 commits January 18, 2025 06:40
@terryjreedy
Update Lib/test/test_minidom.py
2c364f5
@terryjreedy
Update Lib/test/test_minidom.py
18de6c0
@terryjreedy
Update Lib/test/test_minidom.py
1c6a5af
picnixz
picnixz approved these changes Jan 18, 2025
View reviewed changes
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting core review labels Jan 18, 2025
@hugovk

hugovk commented Apr 24, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

These stubs have been present for 25 years, since Python 2.0!
7993bcc

I'd rather see tests added rather than commented out. If not added, let's delete them otherwise I can see these being around until 2050 🙃

Quoting @voidspace:

The same is true for commenting-out code; if a block of commented code is going into a release, it shouldn't exist. If it is code that may be restored, make a ticket and reference the commit hash for the code delete.

https://opensource.com/article/17/5/30-best-practices-software-development-and-testing

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@StanFromIreland

StanFromIreland commented Apr 24, 2025

Copy link
Copy Markdown
Member

There is actually already a patch that would add some of them: https://bugs.python.org/file33258/issue19683.patch

Tough I am not sure who submitted it.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hugovk

hugovk commented Apr 24, 2025

Copy link
Copy Markdown
Member

Maybe checking the old bpo page helps?

https://bugs.python.org/issue19683

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

StanFromIreland
StanFromIreland requested changes Apr 26, 2025
View reviewed changes

@StanFromIreland StanFromIreland left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of these tests have been implemented. Surprisingly not a merge conflict.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions

github-actions Bot commented Apr 21, 2026

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 21, 2026
@serhiy-storchaka serhiy-storchaka mentioned this pull request Aug 30, 2026
gh-63882: Implement empty tests in test_minidom #156677
Merged
@serhiy-storchaka

serhiy-storchaka commented Aug 30, 2026

Copy link
Copy Markdown
Member

Thank you for the patch. Commenting the tests out was the right thing while there was no replacement, but they are implemented now in #156677, so this is no longer needed.

The ## def testX(self): pass form would also have to be reconciled with the tests which have been implemented since January 2025, as noted in the last review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Sep 2, 2026
@serhiy-storchaka serhiy-storchaka closed this Sep 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@terryjreedy terryjreedy terryjreedy left review comments
@StanFromIreland StanFromIreland StanFromIreland requested changes
@picnixz picnixz picnixz approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

awaiting merge skip news tests Tests in the Lib/test dir

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@srinivasreddy @StanFromIreland @picnixz @hugovk @serhiy-storchaka @terryjreedy
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.