diff --git a/tests/test-push.t b/tests/test-push.t
index e5b10a710036dbfcf146f9d627d860f6b05ef0e0_dGVzdHMvdGVzdC1wdXNoLnQ=..b022478ae3d13114a1f6a85760409c3a9a4c1831_dGVzdHMvdGVzdC1wdXNoLnQ= 100644
--- a/tests/test-push.t
+++ b/tests/test-push.t
@@ -192,7 +192,8 @@
   searching for changes
   adding objects
   added 1 commits with 1 trees and 1 blobs
-  $ hg summary
+(the phases line was added in Mercurial 3.5)
+  $ hg summary | grep -Ev '^phases:'
   parent: -1:000000000000  (no revision checked out)
   branch: default
   commit: (clean)