Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
codecov:
config: codecov.yml
require_ci_to_pass: false

coverage:
Expand All @@ -11,7 +10,8 @@ coverage:
target: 90%
informational: true
ignore:
- "xmitgcm/test/test_llcreader.py"
- "xmitgcm/test/*"
- "xmitgcm/__init__.py"
- "setup.py"
- "xmitgcm/llcreader/*"

Expand Down
6 changes: 5 additions & 1 deletion xmitgcm/test/test_xmitgcm_common.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pytest
import os
import sys
import fnmatch
import tarfile
import numpy as np
Expand Down Expand Up @@ -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.
Expand Down
Loading