From 737b4a833bbc90619ae4a231e48bc16331bff7e5 2014-05-16 21:43:10 From: Thomas Kluyver Date: 2014-05-16 21:43:10 Subject: [PATCH] Ensure history tests release database before cleanup --- diff --git a/IPython/core/tests/test_history.py b/IPython/core/tests/test_history.py index 005e8e9..1ec2852 100644 --- a/IPython/core/tests/test_history.py +++ b/IPython/core/tests/test_history.py @@ -134,6 +134,8 @@ def test_history(): ip.history_manager.writeout_cache() nt.assert_equal(ip.history_manager.session_number, 3) finally: + # Ensure saving thread is shut down before we try to clean up the files + ip.history_manager.save_thread.stop() # Restore history manager ip.history_manager = hist_manager_ori