comparison tests/test-context.py @ 128:838c5a91ed44

tests: skip test using assertIn on Python < 2.7
author Matt Mackall <mpm@selenic.com>
date Thu, 31 Jul 2014 15:30:51 -0500
parents e05b0cf920bb
children b6f601ba7f3c
comparison
equal deleted inserted replaced
127:53387d1e620b 128:838c5a91ed44
1 import sys
1 from hglib.error import CommandError 2 from hglib.error import CommandError
2 import common, hglib 3 import common, hglib
3 from hglib import context 4 from hglib import context
4 5
5 class test_context(common.basetest): 6 class test_context(common.basetest):
70 71
71 def test_in_keyword(self): 72 def test_in_keyword(self):
72 """ 73 """
73 test the 'in' keyword using both revision numbers or changeset ids. 74 test the 'in' keyword using both revision numbers or changeset ids.
74 """ 75 """
76 if sys.version_info < (2, 7):
77 return
78
75 self.append('a', 'a') 79 self.append('a', 'a')
76 rev0, node0 = self.client.commit('first', addremove=True) 80 rev0, node0 = self.client.commit('first', addremove=True)
77 self.append('a', 'a') 81 self.append('a', 'a')
78 rev1, node1 = self.client.commit('second') 82 rev1, node1 = self.client.commit('second')
79 83