# HG changeset patch # User Matt Mackall # Date 1406838651 18000 # Node ID 838c5a91ed44afb1170495e859ba54413daf58ad # Parent 53387d1e620be074043e0291a6df24fbcba243e1 tests: skip test using assertIn on Python < 2.7 diff -r 53387d1e620b -r 838c5a91ed44 tests/test-context.py --- a/tests/test-context.py Mon Jun 16 18:29:06 2014 +0200 +++ b/tests/test-context.py Thu Jul 31 15:30:51 2014 -0500 @@ -1,3 +1,4 @@ +import sys from hglib.error import CommandError import common, hglib from hglib import context @@ -72,6 +73,9 @@ """ test the 'in' keyword using both revision numbers or changeset ids. """ + if sys.version_info < (2, 7): + return + self.append('a', 'a') rev0, node0 = self.client.commit('first', addremove=True) self.append('a', 'a')