diff --git a/tests/test_package_getters.py b/tests/test_package_getters.py
index <HASH>..<HASH> 100644
--- a/tests/test_package_getters.py
+++ b/tests/test_package_getters.py
@@ -1,5 +1,6 @@
 import os
 import tempfile
+import shutil
 
 import pytest
 
@@ -47,6 +48,11 @@ class TestLocalFileGetter(object):
                   LocalFileGetter('python-many-dashes-foo-1.tar'),
                   ]
 
+    def teardown_method(self, method):
+        for file_getter in self.l:
+            if hasattr(file_getter, 'temp_dir'):
+                shutil.rmtree(file_getter.temp_dir)
+
     @pytest.mark.parametrize(('i', 'expected'), [
         (0, 'plumbum-0.9.0'),
         (1, 'Sphinx-1.1.3-py2.6'),
Remove all temporary directories properly after the tests run