Skip to content

tests: improve subtest cleanup - #2994

Open
Aryadeepta wants to merge 1 commit into
theupdateframework:developfrom
Aryadeepta:improve-subtest-cleanup
Open

tests: improve subtest cleanup#2994
Aryadeepta wants to merge 1 commit into
theupdateframework:developfrom
Aryadeepta:improve-subtest-cleanup

Conversation

@Aryadeepta

Copy link
Copy Markdown

Description:

Updates run_sub_tests_with_dataset to call teardown_subtest() in a
finally block when it is defined. This ensures per-subtest cleanup runs
even when a subtest fails.

Removes the now-redundant try/finally cleanup blocks from the affected
updater tests and adds regression coverage for cleanup after a failing
subtest.

Testing:

  • tox -e lint
  • tox -e py

Fixes #1719

Signed-off-by: aryadeepta <aryadeeptade@gmail.com>
@Aryadeepta
Aryadeepta requested a review from a team as a code owner August 23, 2026 16:01
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.

Improve subtests clean up

1 participant