Skip to content

Commit

Permalink
Update for coverage 5.0a8
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat authored and ionelmc committed Oct 3, 2019
1 parent 5f70ec4 commit 994fb00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/test_pytest_cov.py
Expand Up @@ -2005,8 +2005,8 @@ def test_contexts(testdir, opts):
for context, label in EXPECTED_CONTEXTS.items():
if context == '':
continue
context_pattern = re.sub(r"[\[\|]", r"[\g<0>]", context)
actual = data.lines(test_context_path, contexts=[context_pattern])
data.set_query_context(context)
actual = data.lines(test_context_path)
assert line_data[label] == actual, "Wrong lines for context {!r}".format(context)


Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -30,7 +30,7 @@ setenv =
xdist29: _DEP_PYTESTXDIST=pytest-xdist==1.29.0

coverage45: _DEP_COVERAGE=coverage==4.5.4
coverage50: _DEP_COVERAGE=coverage==5.0a7
coverage50: _DEP_COVERAGE=coverage==5.0a8

passenv =
*
Expand Down

0 comments on commit 994fb00

Please sign in to comment.