diff --git a/tests/test-phases.t b/tests/test-phases.t
index bfc6e75c01148a6d7d93762804d4f891f3dff161_dGVzdHMvdGVzdC1waGFzZXMudA==..41021660baa1bdb3fb089d6ddb6b6658c9e540b1_dGVzdHMvdGVzdC1waGFzZXMudA== 100644
--- a/tests/test-phases.t
+++ b/tests/test-phases.t
@@ -896,8 +896,7 @@
   $ hg --config "phases.new-commit=internal" commit -m "my test internal commit" 2>&1 | grep ProgrammingError
   ** ProgrammingError: this repository does not support the internal phase
       raise error.ProgrammingError(msg)
-  mercurial.error.ProgrammingError: this repository does not support the internal phase (no-chg !)
-  ProgrammingError: this repository does not support the internal phase (chg !)
+  *ProgrammingError: this repository does not support the internal phase (glob)
   $ hg --config "phases.new-commit=archived" commit -m "my test archived commit" 2>&1 | grep ProgrammingError
   ** ProgrammingError: this repository does not support the archived phase
       raise error.ProgrammingError(msg)
@@ -901,8 +900,7 @@
   $ hg --config "phases.new-commit=archived" commit -m "my test archived commit" 2>&1 | grep ProgrammingError
   ** ProgrammingError: this repository does not support the archived phase
       raise error.ProgrammingError(msg)
-  mercurial.error.ProgrammingError: this repository does not support the archived phase (no-chg !)
-  ProgrammingError: this repository does not support the archived phase (chg !)
+  *ProgrammingError: this repository does not support the archived phase (glob)
 
   $ cd ..