Skip to content

Commit

Permalink
fix test for windows platform
Browse files Browse the repository at this point in the history
permissions for directories differ between platforms
  • Loading branch information
raphaeldussin authored Nov 19, 2019
1 parent 9f52c50 commit 1cbbd1a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion zarr/tests/test_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,11 @@ def test_permissions(self):
assert perm == '0o644'
info = z.getinfo('baz/')
perm = oct(info.external_attr >> 16)
assert perm == '0o40775'
# windows/unix os dependent
if os.name == 'posix':
assert perm == '0o40775'
else:
assert perm == '0o644'
z.close()


Expand Down

0 comments on commit 1cbbd1a

Please sign in to comment.