From d8ad687898bcd7584d26c6af17110bcf0e5d2df4 2012-07-03 17:50:52 From: Bradley M. Froehle Date: 2012-07-03 17:50:52 Subject: [PATCH] Clean up TemporaryDirectory (prevent ResourceWarning) --- diff --git a/IPython/core/tests/test_magic.py b/IPython/core/tests/test_magic.py index 797b04e..b74236d 100644 --- a/IPython/core/tests/test_magic.py +++ b/IPython/core/tests/test_magic.py @@ -489,6 +489,7 @@ def test_extension(): assert 'arq' not in _ip.user_ns finally: _ip.ipython_dir = orig_ipython_dir + tmpdir.cleanup() def test_notebook_export_json(): with TemporaryDirectory() as td: