Skip to content

Commit b40dcda

Browse files
committed
Fix coverage config and master_len test
Something has changed in pytest (or something to do with the test suite). All of a sudden some warnings are getting suppressed within a function despite setup_module supposedly activating warnings always.
1 parent 178b1b1 commit b40dcda

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

coverage.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[run]
22
branch = True
3-
include = compoundfiles/*
4-
;omit = */bar.py,*/baz.py
3+
source = compoundfiles
54

65
[report]
6+
include = compoundfiles/*
77
ignore_errors = True
88
show_missing = True
99
exclude_lines =

tests/test_function.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
DirEntry = namedtuple('DirEntry', ('name', 'isfile', 'size'))
4141

42-
def setup_module(module):
42+
def setup_function(fn):
4343
warnings.simplefilter('always')
4444

4545
def verify_contents(doc, contents):
@@ -461,7 +461,7 @@ def test_strange_master_ext():
461461
def test_invalid_master_loop():
462462
with pytest.raises(cf.CompoundFileMasterLoopError):
463463
# Same as strange_master_ext.dat but with DIFAT extension sector filled
464-
# and terminated with a self, test_contents=False-reference
464+
# and terminated with a self-reference
465465
doc = cf.CompoundFileReader('tests/invalid_master_loop.dat')
466466

467467
def test_invalid_master_len():

0 commit comments

Comments
 (0)