Skip to content

Commit

Permalink
Don't complain if folder already gone
Browse files Browse the repository at this point in the history
  • Loading branch information
awf committed Jan 27, 2025
1 parent 1374771 commit 629f628
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_MkSweep.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


def test_mksweep(capfd):
shutil.rmtree("tmp/awfutils-sweep-test")
shutil.rmtree("tmp/awfutils-sweep-test", ignore_errors=True)
with MkSweep("tmp/awfutils-sweep-test") as ms:
for lr in (1e-4, 3e-4, 1e-3):
for beta in set([0.99, 0.999, 1-lr]):
Expand All @@ -21,7 +21,7 @@ def test_mksweep(capfd):
)

def test_mksweep_dups(capfd):
shutil.rmtree("tmp/awfutils-sweep-test")
shutil.rmtree("tmp/awfutils-sweep-test", ignore_errors=True)
with MkSweep("tmp/awfutils-sweep-test") as ms:
for lr in (1e-4, 3e-4, 1e-3):
for beta in [0.99, 0.999, 1-lr]:
Expand All @@ -34,7 +34,7 @@ def test_mksweep_dups(capfd):
)

def test_mksweep_arange(capfd):
shutil.rmtree("tmp/awfutils-sweep-test")
shutil.rmtree("tmp/awfutils-sweep-test", ignore_errors=True)
with MkSweep("tmp/awfutils-sweep-test") as ms:
for alpha in np.linspace(1.5, 2, 3):
for beta in np.linspace(alpha, alpha** 2, 3):
Expand Down

0 comments on commit 629f628

Please sign in to comment.