Skip to content

Instantly share code, notes, and snippets.

@certik
Created March 19, 2009 04:17
Show Gist options
  • Save certik/81583 to your computer and use it in GitHub Desktop.
Save certik/81583 to your computer and use it in GitHub Desktop.
import sys
def fails():
e = 1/0
from IPython.kernel import client
mec = client.MultiEngineClient()
mec.reset()
ids = mec.get_ids()
mec.push_function({"f": fails})
try:
print mec.execute("get_tests()")
except:
t, v, tr = sys.exc_info()
print v
v.raise_exception()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment