Skip to content

gh-111726: Cleanup test files after running sqlite3 doctest #117604

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 1 commit into from
Apr 8, 2024

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Apr 7, 2024

When running make -C Doc/ PYTHON=../python.exe doctest on main I'm left with some untracked test files:

➤ Untracked files
#
#      untracked:  [1] Doc/backup.db
#      untracked:  [2] Doc/dump.sql
#      untracked:  [3] Doc/example.db
#      untracked:  [4] Doc/tutorial.db

We don't need them, let's delete them after the doctest.

I did it as a single testcleanup block at the end of the file. Is this okay or should I make a few localised blocks near where each file is created?


📚 Documentation preview 📚: https://cpython-previews--117604.org.readthedocs.build/

@bedevere-app bedevere-app bot added docs Documentation in the Doc dir skip news awaiting core review labels Apr 7, 2024
@erlend-aasland erlend-aasland changed the title Cleanup test files after running sqlite3 doctest gh-111726: Cleanup test files after running sqlite3 doctest Apr 8, 2024
@erlend-aasland
Copy link
Contributor

I think it is ok to clean them up in a single testcleanup at the end.

BTW, see also:

I think we should merge this first, as #111730 grew in complexity.

Copy link
Contributor

@erlend-aasland erlend-aasland left a comment

Choose a reason for hiding this comment

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

Thank you so much!

@erlend-aasland erlend-aasland merged commit a453f5e into python:main Apr 8, 2024
@erlend-aasland erlend-aasland added the needs backport to 3.12 only security fixes label Apr 8, 2024
@miss-islington-app

This comment was marked as outdated.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 8, 2024
…thonGH-117604)

Remove all temporary databases in a dedicated 'testcleanup' step
at the end of the file.
(cherry picked from commit a453f5e)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
@bedevere-app
Copy link

bedevere-app bot commented Apr 8, 2024

GH-117622 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Apr 8, 2024
erlend-aasland added a commit to sobolevn/cpython that referenced this pull request Apr 8, 2024
erlend-aasland pushed a commit that referenced this pull request Apr 8, 2024
…H-117604) (#117622)

Remove all temporary databases in a dedicated 'testcleanup' step
at the end of the file.
(cherry picked from commit a453f5e)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
@hugovk hugovk deleted the docs-sqlite3-doctest-cleanup branch April 8, 2024 07:35
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
…thon#117604)

Remove all temporary databases in a dedicated 'testcleanup' step
at the end of the file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip issue skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants