Skip to content

Commit 6049a78

Browse files
committed
Make context test use the old ctracer (seems the new sysmon tracer behaves differently).
1 parent 8ebf20b commit 6049a78

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/test_pytest_cov.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1987,6 +1987,9 @@ def test_contexts(pytester, testdir, opts):
19871987
with Path(__file__).parent.joinpath('contextful.py').open() as f:
19881988
contextful_tests = f.read()
19891989
script = testdir.makepyfile(contextful_tests)
1990+
testdir.tmpdir.join('.coveragerc').write("""[run]
1991+
core = ctrace""")
1992+
19901993
result = testdir.runpytest('-v', f'--cov={script.dirpath()}', '--cov-context=test', script, *opts.split())
19911994
assert result.ret == 0
19921995
result.stdout.fnmatch_lines(

0 commit comments

Comments
 (0)