From 55b537d11ab0e33d63de48fb3d18d1326d09264a Mon Sep 17 00:00:00 2001 From: Julian Foad Date: Fri, 6 Aug 2010 14:20:55 +0000 Subject: [PATCH] In the Python test suite, fix a false assumption that make_repo_and_wc() could return a value. It can't: it raises on error. No functional change. * subversion/tests/cmdline/svntest/sandbox.py (Sandbox.build): Remove error handling that will never be executed. * subversion/tests/cmdline/schedule_tests.py (add_recursive_already_versioned): Same. git-svn-id: http://svn.apache.org/repos/asf/subversion/trunk/subversion/tests/cmdline@982982 13f79535-47bb-0310-9956-ffa450edef68 --- svntest/sandbox.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/svntest/sandbox.py b/svntest/sandbox.py index bc54c35..cda90d5 100644 --- a/svntest/sandbox.py +++ b/svntest/sandbox.py @@ -96,11 +96,8 @@ class Sandbox: and check out a WC from it (unless CREATE_WC is false). Change the sandbox's name to NAME. See actions.make_repo_and_wc() for details.""" self._set_name(name, read_only) - if svntest.actions.make_repo_and_wc(self, create_wc, read_only): - raise svntest.Failure("Could not build repository and sandbox '%s'" - % self.name) - else: - self._is_built = True + svntest.actions.make_repo_and_wc(self, create_wc, read_only) + self._is_built = True def add_test_path(self, path, remove=True): self.test_paths.append(path) -- 2.11.4.GIT