diff options
author | 2024-02-24 21:48:05 +0100 | |
---|---|---|
committer | 2024-02-25 08:25:06 +0000 | |
commit | 8a2f1d14788d107ec54dc53c9ef1cf00ee310d51 (patch) | |
tree | 73d3233bd33e3d5c15c4a64d3a37bc3e80e08605 | |
parent | _start_proc: Prevent premature ForkProcess garbage collection (diff) | |
download | portage-8a2f1d14788d107ec54dc53c9ef1cf00ee310d51.tar.gz portage-8a2f1d14788d107ec54dc53c9ef1cf00ee310d51.tar.bz2 portage-8a2f1d14788d107ec54dc53c9ef1cf00ee310d51.zip |
test_baseline: Improve robustness with cleanup
The baseline tests need to cleanup the ResolverPlayground
after each testcase, with each different parametrization.
This is ensured by making the scope of the playground
fixture the function instead of the module. With module
the cleanup only happens before/after the switch from/to
xpak and gpkg.
Signed-off-by: Gábor Oszkár Dénes <gaboroszkar@protonmail.com>
Closes: https://github.com/gentoo/portage/pull/1281
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | lib/portage/tests/emerge/conftest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/portage/tests/emerge/conftest.py b/lib/portage/tests/emerge/conftest.py index 580d1e09a..356e09879 100644 --- a/lib/portage/tests/emerge/conftest.py +++ b/lib/portage/tests/emerge/conftest.py @@ -406,7 +406,7 @@ def async_loop(): yield asyncio._wrap_loop() -@pytest.fixture(params=SUPPORTED_GENTOO_BINPKG_FORMATS, scope="module") +@pytest.fixture(params=SUPPORTED_GENTOO_BINPKG_FORMATS, scope="function") def playground(request, tmp_path_factory): """Fixture that provides instances of ``ResolverPlayground`` each one with one supported value for ``BINPKG_FORMAT``.""" |