diff --git a/codecov.yml b/codecov.yml index 56a68e6..d67d97d 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,5 +1,4 @@ codecov: - config: codecov.yml require_ci_to_pass: false coverage: @@ -11,7 +10,8 @@ coverage: target: 90% informational: true ignore: - - "xmitgcm/test/test_llcreader.py" + - "xmitgcm/test/*" + - "xmitgcm/__init__.py" - "setup.py" - "xmitgcm/llcreader/*" diff --git a/xmitgcm/test/test_xmitgcm_common.py b/xmitgcm/test/test_xmitgcm_common.py index 5c7cbd8..866a768 100644 --- a/xmitgcm/test/test_xmitgcm_common.py +++ b/xmitgcm/test/test_xmitgcm_common.py @@ -1,5 +1,6 @@ import pytest import os +import sys import fnmatch import tarfile import numpy as np @@ -249,7 +250,10 @@ def untar(data_dir, basename, target_dir): if not os.path.exists(datafile): raise IOError('Could not find data file %s' % datafile) tar = tarfile.open(datafile) - tar.extractall(target_dir) + if sys.version >= '3.12': + tar.extractall(target_dir,filter='data') + else: + tar.extractall(target_dir) tar.close() # subdirectory where file should have been untarred. # assumes the directory is the same name as the tar file itself.