diff tests/test-update.py @ 115:8867908fe8c7 1.0

tests: deal with missing largefiles support for 1.9
author Matt Mackall <mpm@selenic.com>
date Mon, 06 May 2013 15:17:40 -0500
parents 9324a89dd84e
children e738d6fe5f3f
line wrap: on
line diff
--- a/tests/test-update.py	Mon May 06 14:41:10 2013 -0500
+++ b/tests/test-update.py	Mon May 06 15:17:40 2013 -0500
@@ -75,7 +75,11 @@
         import os
         open('.hg/hgrc', 'a').write('[extensions]\nlargefiles=\n')
         self.append('b', 'a')
-        self.client.rawcommand(['add', 'b', '--large'])
+        try:
+            self.client.rawcommand(['add', 'b', '--large'])
+        except error.CommandError:
+            return
+
         rev2, node2 = self.client.commit('third')
         # Go back to 0
         self.client.rawcommand(['update', str(self.rev0)],