Skip to content

Conversation

@akinomyoga
Copy link
Collaborator

From #1531 (comment) by @yedayak:

This looks good, a follow up might be to convert usages of prepare_fixture_dir to also use tmp_path_factory, maybe it will help with #1339 (comment), But this isn't needed for this PR.

I also include a change in the scope of a fixture TestCompLoad.fixture_dir (test/t/unit/test_unit_load.py) in the second commit.

Currently, the fixture directory is created for every test because the
scope of the fixture is not specified.  Since the contents of the
fixture directory is fixed and each test does not modify its contents,
it should be safe to share the fixture directory.

In this patch, we specify the scope of the fixture to be "class", so
that the fixture directory is shared by tests.
Copy link
Collaborator

@yedayak yedayak left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Comment on lines +44 to +45
cmd1.symlink_to("../prefix1/bin/cmd1")
cmd2.symlink_to("../prefix1/sbin/cmd2")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice

@akinomyoga
Copy link
Collaborator Author

Thank you!

@akinomyoga akinomyoga merged commit 5b5b9cc into scop:main Dec 31, 2025
8 checks passed
@akinomyoga akinomyoga deleted the sepdir-2 branch December 31, 2025 21:39
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