Change the DiskFormat Factory to be a context manager.
All code using DiskFormat was updated to the following
with statement:
with DiskFormat(...).new as disk_format:
disk_format.some_member()
This is related to Issue #2412
|
||
|---|---|---|
| .. | ||
| subformat | ||
| __init__.py | ||
| clone_device_test.py | ||
| device_provider_test.py | ||
| disk_test.py | ||
| integrity_device_test.py | ||
| loop_device_test.py | ||
| luks_device_test.py | ||
| mapped_device_test.py | ||
| raid_device_test.py | ||
| setup_test.py | ||