changeset 478:37304494cd15

No os.spawnvp() in Windows, use subprocess.call() instead
author Risto Kankkunen <risto.kankkunen@iki.fi>
date Wed, 29 Jul 2009 16:34:15 +0300
parents f6050c4dde31
children 83fcb1cf6d8f
files tests/test_svnwrap.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test_svnwrap.py
+++ b/tests/test_svnwrap.py
@@ -13,8 +13,7 @@ class TestBasicRepoLayout(unittest.TestC
     def setUp(self):
         self.tmpdir = tempfile.mkdtemp('svnwrap_test')
         self.repo_path = '%s/testrepo' % self.tmpdir
-        os.spawnvp(os.P_WAIT, 'svnadmin', ['svnadmin', 'create',
-                                           self.repo_path,])
+        subprocess.call(['svnadmin', 'create', self.repo_path,])
         inp = open(os.path.join(os.path.dirname(__file__), 'fixtures',
                                 'project_root_at_repo_root.svndump'))
         proc = subprocess.call(['svnadmin', 'load', self.repo_path,],
@@ -59,8 +58,7 @@ class TestRootAsSubdirOfRepo(TestBasicRe
     def setUp(self):
         self.tmpdir = tempfile.mkdtemp('svnwrap_test')
         self.repo_path = '%s/testrepo' % self.tmpdir
-        os.spawnvp(os.P_WAIT, 'svnadmin', ['svnadmin', 'create',
-                                           self.repo_path,])
+        subprocess.call(['svnadmin', 'create', self.repo_path,])
         inp = open(os.path.join(os.path.dirname(__file__), 'fixtures',
                                 'project_root_not_repo_root.svndump'))
         ret = subprocess.call(['svnadmin', 'load', self.repo_path,],