[PATCH pyparted] Use addCleanup instead of tearDown for removing temp-device.
Brian C. Lane
bcl at redhat.com
Sat Jul 25 00:01:11 UTC 2015
On Fri, Jul 24, 2015 at 03:58:25PM -0400, Chris Lumens wrote:
> If something fails in setUp, tearDown will not be called. However, addCleanup
> will always be called. We should use this to make sure no /tmp/temp-device-*
> files stay around.
> ---
> tests/baseclass.py | 23 +++++++++++++++--------
> tests/test__ped_partition.py | 4 ++--
> 2 files changed, 17 insertions(+), 10 deletions(-)
Ack.
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
More information about the anaconda-patches
mailing list