Skip to content

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented May 17, 2025

PR summary

Consolidating these files make it easier to remove or restore them without having to track each one individually.

The main reason for this is #29093, wherein we can restore the test data (to the temporary testing environment) more easily if it's a single subdirectory.

PR checklist

Copy link
Member

@dstansby dstansby left a comment

Choose a reason for hiding this comment

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

Looks good to me - I left a copule of comments/suggestions for minor improvement, but don't think they're blockers.

@@ -33,15 +33,15 @@ def build_sphinx_html(source_dir, doctree_dir, html_dir, extra_args=None):


def test_tinypages(tmp_path):
shutil.copytree(Path(__file__).parent / 'tinypages', tmp_path,
shutil.copytree(Path(__file__).parent / 'data/tinypages', tmp_path,
Copy link
Member

Choose a reason for hiding this comment

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

While all these lines are being changed, it might be worth adding "tinypages_data_path = Path(file).parent / "data" / "tinypages"` variable to the file and re-using it?

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, done.

Consolidating these files make it easier to remove or restore them
without having to track each one individually.
@timhoffm timhoffm merged commit 903d537 into matplotlib:main May 21, 2025
40 checks passed
@timhoffm timhoffm added this to the v3.11.0 milestone May 21, 2025
@QuLogic QuLogic deleted the test-data-dir branch May 21, 2025 06:50
@QuLogic QuLogic mentioned this pull request May 21, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants