Skip to content

integration: Move mock patches to class setUp#424

Merged
petrutlucian94 merged 1 commit intocloudbase:masterfrom
claudiubelu:patch-integration
May 8, 2026
Merged

integration: Move mock patches to class setUp#424
petrutlucian94 merged 1 commit intocloudbase:masterfrom
claudiubelu:patch-integration

Conversation

@claudiubelu
Copy link
Copy Markdown
Member

oslotest's base class may add mock.patch.stopall to the cleanup (super().addCleanup(mock.patch.stopall)), which means that the patches we have made in the harness will be undone when the second test runs.

This may mean that psutil.Process.send_signal becomes unpatched, and SIGINT will be sent to the test runners, typically on cancelation tests.

oslotest's base class may add mock.patch.stopall to the cleanup
(`super().addCleanup(mock.patch.stopall)`), which means that the patches
we have made in the harness will be undone when the second test runs.

This may mean that `psutil.Process.send_signal` becomes unpatched, and
SIGINT will be sent to the test runners, typically on cancelation tests.
@claudiubelu claudiubelu force-pushed the patch-integration branch from ce186d0 to 6b94aad Compare May 8, 2026 12:58
@petrutlucian94 petrutlucian94 merged commit 8dff501 into cloudbase:master May 8, 2026
5 checks passed
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