diff tests/test_svnwrap.py @ 479:83fcb1cf6d8f

Avoid 'ValueError: close_fds is not supported on Windows platforms' exception
author Risto Kankkunen <risto.kankkunen@iki.fi>
date Wed, 29 Jul 2009 17:26:29 +0300
parents 37304494cd15
children 7fa100ae1a11
line wrap: on
line diff
--- a/tests/test_svnwrap.py
+++ b/tests/test_svnwrap.py
@@ -17,7 +17,8 @@ class TestBasicRepoLayout(unittest.TestC
         inp = open(os.path.join(os.path.dirname(__file__), 'fixtures',
                                 'project_root_at_repo_root.svndump'))
         proc = subprocess.call(['svnadmin', 'load', self.repo_path,],
-                                stdin=inp, close_fds=True,
+                                stdin=inp,
+                                close_fds=test_util.canCloseFds,
                                 stdout=subprocess.PIPE,
                                 stderr=subprocess.STDOUT)
         assert proc == 0
@@ -62,7 +63,8 @@ class TestRootAsSubdirOfRepo(TestBasicRe
         inp = open(os.path.join(os.path.dirname(__file__), 'fixtures',
                                 'project_root_not_repo_root.svndump'))
         ret = subprocess.call(['svnadmin', 'load', self.repo_path,],
-                              stdin=inp, close_fds=True,
+                              stdin=inp,
+                              close_fds=test_util.canCloseFds,
                               stdout=subprocess.PIPE,
                               stderr=subprocess.STDOUT)
         assert ret == 0