FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-111726: Cleanup test files after running sqlite3 doctest by hugovk · Pull Request #117604 · python/cpython · GitHub

Repository navigation

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

Merged
erlend-aasland merged 1 commit into
python:mainfrom
hugovk:docs-sqlite3-doctest-cleanup
Apr 8, 2024
Merged

erlend-aasland merged 1 commit into
python:mainfrom
hugovk:docs-sqlite3-doctest-cleanup

Conversation

hugovk commented Apr 7, 2024 •
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Member

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 Bot added docs Documentation in the Doc dir skip news awaiting core review labels Apr 7, 2024
erlend-aasland changed the title Cleanup test files after running sqlite3 doctest gh-111726: Cleanup test files after running sqlite3 doctest Apr 8, 2024

Copy link
Copy Markdown
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.

erlend-aasland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thank you so much!

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

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 Bot commented Apr 8, 2024

Copy link
Copy Markdown

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

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 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL