diff --git a/tests/test-nointerrupt.t b/tests/test-nointerrupt.t
--- a/tests/test-nointerrupt.t
+++ b/tests/test-nointerrupt.t
@@ -1,10 +1,10 @@
 Dummy extension simulating unsafe long running command
   $ cat > sleepext.py <<EOF
+  > import itertools
   > import time
-  > import itertools
   > 
+  > from mercurial.i18n import _
   > from mercurial import registrar
-  > from mercurial.i18n import _
   > 
   > cmdtable = {}
   > command = registrar.command(cmdtable)