Skip to content

Commit 246e3f2

Browse files
committed
copy2 causes a file permission error
1 parent ba2b848 commit 246e3f2

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,5 @@ docs/_build
7979
*.bak
8080
tests/reference_model_runs_old
8181
local_tests/
82+
output.zip
83+
log.txt

tests/reference_model_runs/pick_model_runs_fun.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import tempfile
55
from difflib import unified_diff
66
from pprint import pprint
7-
from shutil import move, copy2
7+
from shutil import move, copy
88

99
import flopy
1010
import numpy.testing as npt
@@ -64,7 +64,7 @@ def fun_test_reference_run(modelname,
6464
assert input_filelist, 'test_model_inputref_dir is empty:' + test_model_inputref_dir
6565

6666
for fp in input_filelist:
67-
copy2(fp, test_model_inputdirect_dir)
67+
copy(fp, test_model_inputdirect_dir)
6868

6969
fp_nam = os.path.join(test_model_inputref_dir, modelname + '.nam')
7070

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
[tox]
44
envlist =
55
py38
6+
py39
67

78
[testenv]
89
basepython =
910
{bootstrap,clean,check,docs,spell,report,codecov,py38}: {env:TOXPYTHON:python3.8}
11+
{py39}: {env:TOXPYTHON:python3.9}
1012
setenv =
1113
PYTHONPATH={toxinidir}/tests
1214
PYTHONUNBUFFERED=yes

0 commit comments

Comments
 (0)