]> git.ipfire.org Git - thirdparty/samba.git/commit
CVE-2020-25722 selftest: Use addCleanup rather than tearDown in user_account_control.py
authorAndrew Bartlett <abartlet@samba.org>
Sun, 29 Aug 2021 22:10:56 +0000 (10:10 +1200)
committerJule Anger <janger@samba.org>
Mon, 8 Nov 2021 09:52:09 +0000 (10:52 +0100)
commit0777ea3d6600863afbf216bf8219bd3c9d4517cd
treecc1402618f2e6ea9a0223818a5aa1e90c37c7461
parent62fe5530de3624db651baff17e1374d508451cfc
CVE-2020-25722 selftest: Use addCleanup rather than tearDown in user_account_control.py

self.addCleanup() is called regardless of the test failure or error status
and so is more reliable, particularly during development.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14753
(cherry picked from commit 8c455268165f0bbfce17407df2c1746a0e03f828)
source4/dsdb/tests/python/user_account_control.py