Commit 6d008e1c authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

TEST: Something wrong with coverage / pytest-cov / subprocess

parent a65431fa
......@@ -59,11 +59,20 @@ def test_demo():
def test_demo_commands():
# Issues with pytest-cov 3.0.0 / coveragepy 6.2
# cause coverage to spit out error information
# in subprocess-called invocations. Disabling for
# the time being.
env = os.environ.copy()
for k in list(env.keys()):
if 'COVERAGE' in k or k.startswith('COV_'):
env.pop(k)
def eval_cmd(cmd, out):
# TODO extract all funpack calls, and turn
# them into funpack.main function calls.
result = sp.run(['bash', cmd], stdout=sp.PIPE)
result = sp.run(['bash', cmd], stdout=sp.PIPE, env=env)
with open(out, 'rt') as f:
out = f.read()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment