Skip to content

Commit 861e6ab

Browse files
committed
add fix for test failing on Mac OS
1 parent b1ac8d1 commit 861e6ab

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tests/integration/synapseclient/models/async/test_download_list_async.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,8 +509,11 @@ async def test_download_files_default_location(
509509
# THEN the manifest is written under the CWD
510510
abs_manifest = os.path.abspath(manifest_path)
511511
assert os.path.exists(abs_manifest)
512-
assert abs_manifest.startswith(
513-
tmpdir
512+
# Normalize both paths with realpath — on macOS /var is a
513+
# symlink to /private/var, so tmpdir and the resolved manifest
514+
# path can differ even when the manifest is under tmpdir.
515+
assert os.path.realpath(abs_manifest).startswith(
516+
os.path.realpath(tmpdir)
514517
), f"Expected manifest under {tmpdir}, got {abs_manifest}"
515518

516519
with open(manifest_path, newline="") as f:

0 commit comments

Comments
 (0)