diff tests/comprehensive/test_updatemeta.py @ 1048:903c9c9dfe6a

tests: count revisions explicitly The assumption that len(repo) corresponds to the count of actual, usable revision in the repository fails in presence of hidden revisions. Instead, we use a dedicated method in test_util, and change all tests to use this for obtaining repository length -- just to be safe...
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Fri, 09 Aug 2013 11:22:50 -0400
parents d741f536f23a
children cd256960b622
line wrap: on
line diff
--- a/tests/comprehensive/test_updatemeta.py
+++ b/tests/comprehensive/test_updatemeta.py
@@ -29,7 +29,7 @@ def _do_case(self, name, stupid, single)
         layout = 'single'
     repo, repo_path = self.load_and_fetch(name, subdir=subdir, stupid=stupid,
                                           layout=layout)
-    assert len(self.repo) > 0
+    assert test_util.repolen(self.repo) > 0
     wc2_path = self.wc_path + '_clone'
     u = ui.ui()
     src, dest = test_util.hgclone(u, self.wc_path, wc2_path, update=False)