ipython/ipython — pull request #1656 by minrk (2012-04-24 22:36:20+00:00)
Title: ensure kernels are cleaned up in embed_kernel tests

use contextmanager to ensure kernel manager sockets are closed at the end of tests, preventing delayed 'could not close sockets' errors in later tests.

closes #1653