Skip to content

Commit 4d95d6e

Browse files
authored
Merge pull request #66 from ghisvail/patch-1
Ensure dataset is writable
2 parents 0ccd690 + bd708f5 commit 4d95d6e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎phylib/io/tests/conftest.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import logging
1010
import shutil
11+
import stat
1112

1213
import numpy as np
1314
from pytest import fixture
@@ -72,6 +73,7 @@ def _make_dataset(tempdir, param='dense', has_spike_attributes=True):
7273
continue
7374
logger.debug("Copying file to %s.", to_path)
7475
shutil.copy(path, to_path)
76+
to_path.chmod(to_path.stat().st_mode | stat.S_IWRITE)
7577

7678
# Some changes to files if 'misc' fixture parameter.
7779
if param == 'misc':

0 commit comments

Comments
 (0)