Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions tests/test_bmap_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ def test_get_file_system_type_symlink(self):
"""Check a file system type is returned when used with a symlink"""

with TemporaryDirectory(prefix="testdir_", dir=".") as directory:
fobj = tempfile.NamedTemporaryFile(
with tempfile.NamedTemporaryFile(
"r", prefix="testfile_", delete=False, dir=directory, suffix=".img"
)
lnk = os.path.join(directory, "test_symlink")
os.symlink(fobj.name, lnk)
fstype = BmapHelpers.get_file_system_type(lnk)
self.assertTrue(fstype)
) as fobj:
lnk = os.path.join(directory, "test_symlink")
os.symlink(fobj.name, lnk)
fstype = BmapHelpers.get_file_system_type(lnk)
self.assertTrue(fstype)

def test_is_zfs_configuration_compatible_enabled(self):
"""Check compatibility check is true when zfs param is set correctly"""
Expand Down