Fix failing test on IPython 5
Fix failing test on IPython 5

IPython 5 disallows "multiline editing" when input isn't a terminal.
We must therefore rewrite the sample function as a lambda.

jriehl/numba,IntelLabs/numba,gmarkall/numba,stonebig/numba,gmarkall/numba,seibert/numba,stonebig/numba,stuartarchibald/numba,stuartarchibald/numba,jriehl/numba,numba/numba,cpcloud/numba,IntelLabs/numba,numba/numba,stuartarchibald/numba,numba/numba,cpcloud/numba,numba/numba,sklam/numba,jriehl/numba,IntelLabs/numba,stonebig/numba,cpcloud/numba,jriehl/numba,seibert/numba,jriehl/numba,seibert/numba,sklam/numba,stuartarchibald/numba,stonebig/numba,IntelLabs/numba,gmarkall/numba,cpcloud/numba,gmarkall/numba,cpcloud/numba,IntelLabs/numba,seibert/numba,gmarkall/numba,sklam/numba,seibert/numba,numba/numba,sklam/numba,stuartarchibald/numba,sklam/numba,stonebig/numba