Skip to content

Commit

Permalink
tests: Remove < 2.7 compat code
Browse files Browse the repository at this point in the history
  • Loading branch information
tomspur committed Feb 5, 2017
1 parent d7cd965 commit 9e05890
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions examples/tests/backend_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,19 +338,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 comments on commit 9e05890

Please sign in to comment.