Skip to content

Commit

Permalink
change tempdir to tempfile to be consistent with other tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RokasEl committed Jun 20, 2024
1 parent 8ca8f09 commit c90223c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_schedulefree.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from mace import data, modules, tools
from mace.tools import torch_geometric, scripts_utils
import tempdir
import tempfile

try:
import schedulefree
Expand Down Expand Up @@ -103,7 +103,7 @@ def test_can_load_checkpoint(device):
args.scheduler = "ExponentialLR"
args.lr_scheduler_gamma = 0.9
lr_scheduler = scripts_utils.LRScheduler(optimizer, args)
with tempdir.TempDir() as d:
with tempfile.TemporaryDirectory() as d:
checkpoint_handler = tools.CheckpointHandler(
directory=d, keep=False, tag="schedulefree"
)
Expand Down

0 comments on commit c90223c

Please sign in to comment.