Skip to content

Commit

Permalink
Merge pull request #4600 from neutrinoceros/kill_unused_test_code
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros authored Jul 26, 2023
2 parents 90bed5c + cc5406e commit c7d2c6d
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions doc/source/cookbook/tests/test_cookbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,6 @@
from pathlib import Path


def run_with_capture(*args, **kwargs):
sp = subprocess.Popen(
*args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs
)
out, err = sp.communicate()
if out:
sys.stdout.write(out.decode("UTF-8"))
if err:
sys.stderr.write(err.decode("UTF-8"))

if sp.returncode != 0:
retstderr = " ".join(args[0])
retstderr += "\n\nTHIS IS THE REAL CAUSE OF THE FAILURE:\n"
retstderr += err.decode("UTF-8") + "\n"
raise subprocess.CalledProcessError(sp.returncode, retstderr)

return sp.returncode


BLACKLIST = [
"matplotlib-animation.py",
]
Expand Down

0 comments on commit c7d2c6d

Please sign in to comment.