tests/test-push-http.t
changeset 14011 b69471bdb678
parent 13946 3c2f9f611ef6
child 14093 ce99d887585f
--- a/tests/test-push-http.t	Mon Apr 25 14:03:12 2011 +0200
+++ b/tests/test-push-http.t	Mon Apr 25 18:00:30 2011 +0800
@@ -68,17 +68,8 @@
 
 expect success, server lacks the unbundlehash capability
 
-  $ cat > unbundlehash-off.py << EOF
-  > from mercurial import extensions, repo
-  > def extsetup():
-  >     extensions.wrapfunction(repo.repository, 'capable', wrapper)
-  > def wrapper(orig, self, name, *args, **kwargs):
-  >     if name == 'unbundlehash':
-  >         return False
-  >     return orig(self, name, *args, **kwargs)
-  > EOF
-  $ echo '[extensions]' >> .hg/hgrc
-  $ echo "unbundlehash-off = `pwd`/unbundlehash-off.py" >> .hg/hgrc
+  $ CAP=unbundlehash
+  $ . "$TESTDIR/notcapable"
   $ req
   pushing to http://localhost:$HGPORT/
   searching for changes