Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jreadey committed Jan 21, 2025
1 parent dd3fe0a commit 62ecf1d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/hl/test_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,19 +254,16 @@ def test_nested_create(self):
f.close()

def test_closed_group(self):
def get_group_ref(filename):
tmp_filename = self.getFileName("tmp_file")

def get_group_ref():
tmp_filename = self.getFileName("test_closed_group")
with h5py.File(tmp_filename, 'w') as f:
g1 = f.create_group("g1")
self.assertTrue(isinstance(g1, h5py.Group))
self.assertTrue(g1)

return g1

filename = self.getFileName("test_closed_group")

grp = get_group_ref(filename)
grp = get_group_ref()
self.assertFalse(grp)

def test_external_links(self):
Expand Down

0 comments on commit 62ecf1d

Please sign in to comment.