##// END OF EJS Templates
skip_known_failure using skip, not knowfailureif...
skip_known_failure using skip, not knowfailureif Thomas and I looked into getting the known failures to show up as 'K', instead of 'E', but it involved grabbing a custom nose plugin from numpy and didn't seem worth the trouble. So I'm putting skip_known_failure back to use skip and show up as 'S'.

File last commit:

r1395:1feaf0a3
r3506:f8994e52
Show More
multienginemap.py
17 lines | 414 B | text/x-python | PythonLexer
from IPython.kernel import client
mec = client.MultiEngineClient()
result = mec.map(lambda x: 2*x, range(10))
print "Simple, default map: ", result
m = mec.mapper(block=False)
pr = m.map(lambda x: 2*x, range(10))
print "Submitted map, got PendingResult: ", pr
result = pr.r
print "Using a mapper: ", result
@mec.parallel()
def f(x): return 2*x
result = f(range(10))
print "Using a parallel function: ", result