Skip to content

Commit

Permalink
remove dup code
Browse files Browse the repository at this point in the history
  • Loading branch information
jreadey committed Apr 24, 2024
1 parent 0648dc1 commit 7da1512
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions test/hl/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,24 +234,6 @@ def getFileName(self, basename, subfolder=None):
# Just call the external function
filename = getTestFileName(basename, subfolder=subfolder)

if config.get("use_h5py"):
filename = "out"
if not op.isdir(filename):
os.mkdir(filename)
if subfolder:
filename = op.join(filename, subfolder)
if not op.isdir(filename):
os.mkdir(filename)
filename = op.join(filename, f"{basename}.h5")
else:
if "H5PYD_TEST_FOLDER" in os.environ:
filename = os.environ["H5PYD_TEST_FOLDER"]
else:
# default to the root folder
filename = "/"
if subfolder:
filename = op.join(filename, subfolder)
filename = op.join(filename, f"{basename}.h5")
return filename

def getPathFromDomain(self, domain):
Expand Down

0 comments on commit 7da1512

Please sign in to comment.