8000 Ignore bench file in coverage report, ignore skipped tests. · trinetta/zarr-python@a103247 · GitHub
[go: up one dir, main page]

Skip to content

Commit a103247

Browse files
committed
Ignore bench file in coverage report, ignore skipped tests.
The ndbm tests are also ignored from coverage as ndb is not installable on ghaction on non-macos.
1 parent f6095be commit a103247

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.coveragerc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
[run]
2-
omit = zarr/meta_v1.py
2+
omit =
3+
zarr/meta_v1.py
4+
bench/compress_normal.py
35

46
[report]
57
exclude_lines =

zarr/tests/test_storage.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,10 +1306,10 @@ class TestDBMStoreNDBM(TestDBMStore):
13061306

13071307
def create_store(self):
13081308
ndbm = pytest.importorskip("dbm.ndbm")
1309-
path = tempfile.mktemp(suffix='.ndbm')
1310-
atexit.register(atexit_rmglob, path + '*')
1311-
store = DBMStore(path, flag='n', open=ndbm.open)
1312-
return store
1309+
path = tempfile.mktemp(suffix=".ndbm") # pragma: no cover
1310+
atexit.register(atexit_rmglob, path + "*") # pragma: no cover
1311+
store = DBMStore(path, flag="n", open=ndbm.open) # pragma: no cover
1312+
return store # pragma: no cover
13131313

13141314

13151315
class TestDBMStoreBerkeleyDB(TestDBMStore):

0 commit comments

Comments
 (0)
0