We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc1867d commit 4d870c0Copy full SHA for 4d870c0
tests/test_diffusion.py
@@ -74,13 +74,16 @@ def setUpClass(cls):
74
for filename in os.listdir(f"{script_dir}/../examples"):
75
if (
76
filename not in exclude_dirs
77
- and not os.path.islink(os.path.join(script_dir, filename))
+ and not os.path.exists(os.path.join(script_dir, filename))
78
and os.path.isdir(os.path.join(f"{script_dir}/../examples", filename))
79
):
80
- os.symlink(
81
- os.path.join(f"{script_dir}/../examples", filename),
82
- os.path.join(script_dir, filename),
83
- )
+ try:
+ os.symlink(
+ os.path.join(f"{script_dir}/../examples", filename),
+ os.path.join(script_dir, filename),
84
+ )
85
+ except FileExistsError:
86
+ pass
87
88
for submission in submissions:
89
cls._write_command(submission, cls.out_f)
0 commit comments