diff --git a/tests/test-https.t b/tests/test-https.t
--- a/tests/test-https.t
+++ b/tests/test-https.t
@@ -63,7 +63,7 @@ A malformed per-host certificate file wi
 
   $ echo baddata > badca.pem
   $ hg --config hostsecurity.localhost:verifycertsfile=badca.pem clone https://localhost:$HGPORT/
-  abort: error: unknown error* (glob)
+  abort: error: * (glob)
   [255]
 
 A per-host certificate mismatching the server will fail verification