Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb40dcda

Browse files
committed
Fix coverage config and master_len test
Something has changed in pytest (or something to do with the testsuite). All of a sudden some warnings are getting suppressed within afunction despite setup_module supposedly activating warnings always.
1 parent178b1b1 commitb40dcda

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-
defsetup_module(module):
42+
defsetup_function(fn):
4343
warnings.simplefilter('always')
4444

4545
defverify_contents(doc,contents):
@@ -461,7 +461,7 @@ def test_strange_master_ext():
461461
deftest_invalid_master_loop():
462462
withpytest.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
deftest_invalid_master_len():

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp