Skip to content

Commit

Permalink
Disable coverage inside the subprocess.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionelmc committed Jan 13, 2019
1 parent 3c4f5a5 commit a0cda31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_hunter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1228,11 +1228,11 @@ def test_depth_limit(LineMatcher, tracer_impl, depth):


@pytest.mark.parametrize('depth', [2, 3, 4], ids='depth_lt={}'.format)
def test_depth_limit_integration(LineMatcher, tracer_impl, depth):
def test_depth_limit_integration(LineMatcher, depth):
hunter_env = "action=CallPrinter,depth_lt={!r},kind_in=['call','return'],stdlib=0".format(depth + 1)
output = subprocess.check_output(
[sys.executable, os.path.join(os.path.dirname(__file__), 'sample7.py')],
env=dict(os.environ, PYTHONHUNTER=hunter_env),
env=dict(os.environ, PYTHONHUNTER=hunter_env, COV_CORE_DATAFILE=''),
stderr=subprocess.STDOUT,
)
output = output.decode('utf8')
Expand Down

0 comments on commit a0cda31

Please sign in to comment.