8000 Overhaul external process calls by tomspur · Pull Request #7572 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Overhaul external process calls #7572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Apr 14, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tests: Remove < 2.7 compat code
  • Loading branch information
tomspur committed Apr 9, 2017
commit 772fbc485ca769b76fa60df181bf0d5f6830b384
23 changes: 10 additions & 13 deletions examples/tests/backend_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,19 +337,16 @@ def report_all_missing(directories):
)


try:
import subprocess

def run(arglist):
try:
ret = subprocess.call(arglist)
except KeyboardInterrupt:
sys.exit()
else:
return ret
except ImportError:
def run(arglist):
os.system(arglist)
from matplotlib.compat import subprocess


def run(arglist):
try:
ret = subprocess.call(arglist)
except KeyboardInterrupt:
sys.exit()
else:
return ret


def drive(backend, directories, python=['python'], switches=[]):
Expand Down
0