tests: test-walkrepo shouldn't throw SystemExit
authorBenoit Allard <benoit@aeteurope.nl>
Mon, 08 Dec 2008 20:42:53 +0100
changeset 7492 8649b2a3de75
parent 7491 b95ff487870e
child 7493 518afef5e350
tests: test-walkrepo shouldn't throw SystemExit Write to stdout instead of throwing Exceptions
tests/test-walkrepo.py
--- a/tests/test-walkrepo.py	Sun Dec 07 19:59:01 2008 +0100
+++ b/tests/test-walkrepo.py	Mon Dec 08 20:42:53 2008 +0100
@@ -30,26 +30,26 @@
     reposet = frozenset(walkrepos('.', followsym=True))
     if sym and (len(reposet) != 5):
         print "reposet = %r" % (reposet,)
-        raise SystemExit(1, "Found %d repositories when I should have found 5" % (len(reposet),))
+        print "Found %d repositories when I should have found 5" % (len(reposet),)
     if (not sym) and (len(reposet) != 4):
         print "reposet = %r" % (reposet,)
-        raise SystemExit(1, "Found %d repositories when I should have found 4" % (len(reposet),))
+        print "Found %d repositories when I should have found 4" % (len(reposet),)
     sub1set = frozenset((pjoin('.', 'sub1'),
                          pjoin('.', 'circle', 'subdir', 'sub1')))
     if len(sub1set & reposet) != 1:
         print "sub1set = %r" % (sub1set,)
         print "reposet = %r" % (reposet,)
-        raise SystemExit(1, "sub1set and reposet should have exactly one path in common.")
+        print "sub1set and reposet should have exactly one path in common."
     sub2set = frozenset((pjoin('.', 'subsub1'),
                          pjoin('.', 'subsubdir', 'subsub1')))
     if len(sub2set & reposet) != 1:
         print "sub2set = %r" % (sub2set,)
         print "reposet = %r" % (reposet,)
-        raise SystemExit(1, "sub1set and reposet should have exactly one path in common.")
+        print "sub1set and reposet should have exactly one path in common."
     sub3 = pjoin('.', 'circle', 'top1')
     if sym and not (sub3 in reposet):
         print "reposet = %r" % (reposet,)
-        raise SystemExit(1, "Symbolic links are supported and %s is not in reposet" % (sub3,))
+        print "Symbolic links are supported and %s is not in reposet" % (sub3,)
 
 runtest()
 if sym: