Skip to content

Commit 1da9e4d

Browse files
authored
Merge pull request #684 from Carreau/last-no-cover
Ignore bench file in coverage report, ignore skipped tests.
2 parents 1379ac1 + a103247 commit 1da9e4d

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)