comparison tests/test_util.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 256863a65141
children 37718f514acb
comparison
equal deleted inserted replaced
478:37304494cd15 479:83fcb1cf6d8f
16 from mercurial import hg 16 from mercurial import hg
17 from mercurial import node 17 from mercurial import node
18 from mercurial import ui 18 from mercurial import ui
19 19
20 from hgsubversion import util 20 from hgsubversion import util
21
22 import sys
23 # Documentation for Subprocess.Popen() says:
24 # "Note that on Windows, you cannot set close_fds to true and
25 # also redirect the standard handles by setting stdin, stdout or
26 # stderr."
27 canCloseFds='win32' not in sys.platform
21 28
22 # Fixtures that need to be pulled at a subdirectory of the repo path 29 # Fixtures that need to be pulled at a subdirectory of the repo path
23 subdir = {'truncatedhistory.svndump': '/project2', 30 subdir = {'truncatedhistory.svndump': '/project2',
24 'fetch_missing_files_subdir.svndump': '/foo', 31 'fetch_missing_files_subdir.svndump': '/foo',
25 'empty_dir_in_trunk_not_repo_root.svndump': '/project', 32 'empty_dir_in_trunk_not_repo_root.svndump': '/project',