Skip to content

Commit dd7643d

Browse files
committed
Revert "Remove try block with except FileExistsError that isn't needed"
After running the test, I found that this was needed This reverts commit ead721f.
1 parent ead721f commit dd7643d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tests/test_diffusion.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,13 @@ def setUpClass(cls):
7777
and not os.path.exists(os.path.join(script_dir, filename))
7878
and os.path.isdir(os.path.join(f"{script_dir}/../examples", filename))
7979
):
80-
os.symlink(
81-
os.path.join(f"{script_dir}/../examples", filename),
82-
os.path.join(script_dir, filename),
83-
)
80+
try:
81+
os.symlink(
82+
os.path.join(f"{script_dir}/../examples", filename),
83+
os.path.join(script_dir, filename),
84+
)
85+
except FileExistsError:
86+
pass
8487

8588
for submission in submissions:
8689
cls._write_command(submission, cls.out_f)

0 commit comments

Comments
 (0)