diff --git a/swh/model/tests/test_git.py b/swh/model/tests/test_git.py
index 435101977dc7798f0494d8f6afe7d18cd0ba8684..2f67f7f88ab06a5150edcc1ba1f6ae0cf6da2764 100644
--- a/swh/model/tests/test_git.py
+++ b/swh/model/tests/test_git.py
@@ -4,9 +4,10 @@
 # See top-level LICENSE file for more information
 
 import os
+import shutil
+import subprocess
 import tempfile
 import unittest
-import subprocess
 
 from nose.tools import istest