Skip to content

Commit 994fb00

Browse files
nedbationelmc
authored andcommitted
Update for coverage 5.0a8
1 parent 5f70ec4 commit 994fb00

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/test_pytest_cov.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2005,8 +2005,8 @@ def test_contexts(testdir, opts):
20052005
for context, label in EXPECTED_CONTEXTS.items():
20062006
if context == '':
20072007
continue
2008-
context_pattern = re.sub(r"[\[\|]", r"[\g<0>]", context)
2009-
actual = data.lines(test_context_path, contexts=[context_pattern])
2008+
data.set_query_context(context)
2009+
actual = data.lines(test_context_path)
20102010
assert line_data[label] == actual, "Wrong lines for context {!r}".format(context)
20112011

20122012

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ setenv =
3030
xdist29: _DEP_PYTESTXDIST=pytest-xdist==1.29.0
3131

3232
coverage45: _DEP_COVERAGE=coverage==4.5.4
33-
coverage50: _DEP_COVERAGE=coverage==5.0a7
33+
coverage50: _DEP_COVERAGE=coverage==5.0a8
3434

3535
passenv =
3636
*

0 commit comments

Comments
 (0)