diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-19 22:12:10 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-19 22:12:10 (GMT) |
commit | f966803c0855135242c16417d94261a15384bd54 (patch) | |
tree | 0ac65bb3b21f590e19166993ca0e99601e072385 /Lib/packaging/tests/test_util.py | |
parent | 8914fed8424f0780fea9a75b5f7fb27bc9e286ec (diff) | |
download | cpython-f966803c0855135242c16417d94261a15384bd54.zip cpython-f966803c0855135242c16417d94261a15384bd54.tar.gz cpython-f966803c0855135242c16417d94261a15384bd54.tar.bz2 |
packaging: fix the constructor of FakePopen
packaging.util requires the env keyword.
Diffstat (limited to 'Lib/packaging/tests/test_util.py')
-rw-r--r-- | Lib/packaging/tests/test_util.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Lib/packaging/tests/test_util.py b/Lib/packaging/tests/test_util.py index 203c708..8eb61ae 100644 --- a/Lib/packaging/tests/test_util.py +++ b/Lib/packaging/tests/test_util.py @@ -56,8 +56,14 @@ password:xxx class FakePopen: test_class = None - def __init__(self, cmd, shell, stdout, stderr): - self.cmd = cmd.split()[0] + def __init__(self, args, bufsize=0, executable=None, + stdin=None, stdout=None, stderr=None, + preexec_fn=None, close_fds=False, + shell=False, cwd=None, env=None, universal_newlines=False, + startupinfo=None, creationflags=0, + restore_signals=True, start_new_session=False, + pass_fds=()): + self.cmd = args.split()[0] exes = self.test_class._exes if self.cmd not in exes: # we don't want to call the system, returning an empty |