diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist
index f4893b59230feb181351389ac905ef221ddc451a_Y29udHJpYi9weXRob24zLXdoaXRlbGlzdA==..a17c07793dcd02a98c4706eeb3a7b4e4fcd84c6c_Y29udHJpYi9weXRob24zLXdoaXRlbGlzdA== 100644
--- a/contrib/python3-whitelist
+++ b/contrib/python3-whitelist
@@ -71,6 +71,7 @@
 test-clone-update-order.t
 test-clone.t
 test-clonebundles.t
+test-close-head.t
 test-commit-amend.t
 test-commit-interactive.t
 test-commit-multiple.t
diff --git a/hgext/closehead.py b/hgext/closehead.py
index f4893b59230feb181351389ac905ef221ddc451a_aGdleHQvY2xvc2VoZWFkLnB5..a17c07793dcd02a98c4706eeb3a7b4e4fcd84c6c_aGdleHQvY2xvc2VoZWFkLnB5 100644
--- a/hgext/closehead.py
+++ b/hgext/closehead.py
@@ -66,7 +66,7 @@
     heads = set(repo[h].rev() for h in heads)
     for rev in revs:
         if rev not in heads:
-            raise error.Abort(_('revision is not an open head: %s') % rev)
+            raise error.Abort(_('revision is not an open head: %d') % rev)
 
     message = cmdutil.logmessage(ui, opts)
     if not message: