changeset 14409:9ff996ba00b4

tests: support multiple caps in notcapable
author Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
date Mon, 23 May 2011 20:31:04 +0200
parents 054da1e0afbe
children afeb14a8128a
files tests/notcapable
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/notcapable	Sun May 22 16:10:03 2011 +0300
+++ b/tests/notcapable	Mon May 23 20:31:04 2011 +0200
@@ -10,7 +10,7 @@
 def extsetup():
     extensions.wrapfunction(repo.repository, 'capable', wrapper)
 def wrapper(orig, self, name, *args, **kwargs):
-    if name == '$CAP':
+    if name in '$CAP'.split(' '):
         return False
     return orig(self, name, *args, **kwargs)
 EOF