diff --git a/spyder/config/tests/test_manager.py b/spyder/config/tests/test_manager.py
index <HASH>..<HASH> 100644
--- a/spyder/config/tests/test_manager.py
+++ b/spyder/config/tests/test_manager.py
@@ -121,6 +121,8 @@ startup/run_lines =
     assert 'max_line_count = 600' not in user_contents
     assert 'max_line_count = 600' in plugin_contents
 
+    shutil.rmtree(plugin_path)
+    Console.CONF_FILE = False
     clear_site_config()
Testing: Restore configuration for dummy external plugin

This was making other tests related to that plugin fail.