Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
funpack
Commits
6d008e1c
Commit
6d008e1c
authored
Dec 28, 2021
by
Paul McCarthy
🚵
Browse files
TEST: Something wrong with coverage / pytest-cov / subprocess
parent
a65431fa
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
funpack/tests/test_demo.py
View file @
6d008e1c
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment