Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions tests/model/test_save.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ def test_save_replaces_symlink_instead_of_following_it(self):
target = os.path.join(self.temp_dir, "elsewhere.txt")
with open(target, "wb") as f:
f.write(b"keep")
os.symlink(target, self.save_path)
try:
os.symlink(target, self.save_path)
except OSError as e:
self.skipTest(f"symlink creation not permitted here: {e}")

model = Model()
model.add(Dense(self.NUM_FEATURES, 4))
Expand Down Expand Up @@ -418,4 +421,4 @@ def test_save_partial_configuration_with_fused_loss_and_adamw(self):

# Accuracy omitted
self.assertIsNone(compile_cfg["accuracy"])
base_case.register_test_suites(globals(), TestModelSaveBase)
base_case.register_test_suites(globals(), TestModelSaveBase)
Loading