changeset 130:df808f92c0f1 1.3

tests: skip hidden/obsolete tests on older hg
author Matt Mackall <mpm@selenic.com>
date Thu, 31 Jul 2014 15:58:42 -0500
parents bcc8390d7819
children a3373bf28ccb
files tests/test-hidden.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-hidden.py	Thu Jul 31 15:49:00 2014 -0500
+++ b/tests/test-hidden.py	Thu Jul 31 15:58:42 2014 -0500
@@ -32,6 +32,8 @@
 
     def test_obsolete_in(self):
         """test the 'hidden' keyword with the 'in' method"""
+        if self.client.version < (2, 9, 0):
+            return
         self.append('gna1','ga')
         self.client.add('gna1')
         cs0 = self.client.commit('gna1')[1] #get id
@@ -49,6 +51,8 @@
     """test the "hidden" context method with obsolete changesets enabled on
     hidden and visible changesets"""
     def test_hidden(self):
+        if self.client.version < (2, 9, 0):
+            return
         self.append('gna1','ga')
         self.client.add('gna1')
         cs0 = self.client.commit('gna1')[1] #get id