diff --git a/tests/test-acl.t b/tests/test-acl.t
index b4c9164b031de5e0fe54385cb95f7296b9e7b673_dGVzdHMvdGVzdC1hY2wudA==..5dbefa8469034e0fbc625b8debdc4e3a028b47e5_dGVzdHMvdGVzdC1hY2wudA== 100644
--- a/tests/test-acl.t
+++ b/tests/test-acl.t
@@ -889,7 +889,7 @@
   added 3 changesets with 3 changes to 3 files
   calling hook pretxnchangegroup.acl: hgext.acl.hook
   acl: checking access for user "barney"
-  error: pretxnchangegroup.acl hook raised an exception: [Errno 2] *: '../acl.config' (glob)
+  error: pretxnchangegroup.acl hook raised an exception: [Errno *] *: '../acl.config' (glob)
   transaction abort!
   rollback completed
   abort: *: ../acl.config (glob)
diff --git a/tests/test-qrecord.t b/tests/test-qrecord.t
index b4c9164b031de5e0fe54385cb95f7296b9e7b673_dGVzdHMvdGVzdC1xcmVjb3JkLnQ=..5dbefa8469034e0fbc625b8debdc4e3a028b47e5_dGVzdHMvdGVzdC1xcmVjb3JkLnQ= 100644
--- a/tests/test-qrecord.t
+++ b/tests/test-qrecord.t
@@ -110,7 +110,7 @@
 
   $ echo "mq=nonexistent" >> $HGRCPATH
   $ hg help qrecord
-  *** failed to import extension mq from nonexistent: [Errno 2] * (glob)
+  *** failed to import extension mq from nonexistent: [Errno *] * (glob)
   hg qrecord [OPTION]... PATCH [FILE]...
   
   interactively record a new patch