Mercurial > python-hglib
changeset 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 | 53387d1e620b |
children | bcc8390d7819 |
files | tests/test-context.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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')