Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Test add_to_pydotorg.list_files #258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 25, 2025
Merged

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Jun 24, 2025

Let's merge this before #255, it helps find a bug.

@@ -0,0 +1,587 @@
Python-3.14.0a1.tar.xz
Copy link
Member

Choose a reason for hiding this comment

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

Can we possibly mark this file in some way as "test data only, doesn't need to be updated for each release"?

Copy link
Member Author

Choose a reason for hiding this comment

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

Is its presence in the tests directory good enough, or is there a better file name?

Otherwise we can add a comment above its use in tests/test_add_to_pydotorg.py, and/or add a # comment at the top with add some handling to skip those lines?

Copy link
Member

Choose a reason for hiding this comment

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

My first reaction when I saw the file contents was "oh no something else we have to update on each release" except it isn't, so it'd be nice to have something in the file itself to indicate that.

Maybe if we can work mock into the filename? Or fake? I'm not sure how the library works, but the code should ignore bad filenames anyway, so putting "NOT A REAL LIST, THIS DOESN'T NEED UPDATING" at the top shouldn't hurt anything. Bit ugly, but it could save someone a brief moment of stress.

Copy link
Member

Choose a reason for hiding this comment

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

Oh, and a comment in the test itself is probably a bit far away. I'm thinking it's more likely someone will do a search for 3.14.0 and find the data, so won't necessarily look where it's being used.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, I've renamed the file to tests/fake-ftp-files.txt and put a comment at the top.

@zooba
Copy link
Member

zooba commented Jun 25, 2025

LGTM!

@hugovk hugovk merged commit d921f4e into python:master Jun 25, 2025
12 checks passed
@hugovk hugovk deleted the test-list_files branch June 25, 2025 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants