comparison tests/test_util.py @ 930:5bacb9c63e3e

Fix more peer breakage with old hg versions
author Patrick Mezard <patrick@mezard.eu>
date Mon, 10 Sep 2012 22:42:49 +0200
parents 847953806c77
children d6db289f1548
comparison
equal deleted inserted replaced
929:8417be758047 930:5bacb9c63e3e
102 } 102 }
103 103
104 FIXTURES = os.path.join(os.path.abspath(os.path.dirname(__file__)), 104 FIXTURES = os.path.join(os.path.abspath(os.path.dirname(__file__)),
105 'fixtures') 105 'fixtures')
106 106
107 def getlocalpeer(repo):
108 localrepo = getattr(repo, 'local', lambda: repo)()
109 if isinstance(localrepo, bool):
110 localrepo = repo
111 return localrepo
107 112
108 def _makeskip(name, message): 113 def _makeskip(name, message):
109 if SkipTest: 114 if SkipTest:
110 def skip(*args, **kwargs): 115 def skip(*args, **kwargs):
111 raise SkipTest(message) 116 raise SkipTest(message)