[Python-checkins] cpython: packaging: fix the constructor of FakePopen
victor.stinner
python-checkins at python.org
Fri May 20 00:22:53 CEST 2011
http://hg.python.org/cpython/rev/44a265b95a49
changeset: 70213:44a265b95a49
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Fri May 20 00:12:10 2011 +0200
summary:
packaging: fix the constructor of FakePopen
packaging.util requires the env keyword.
files:
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
--- a/Lib/packaging/tests/test_util.py
+++ b/Lib/packaging/tests/test_util.py
@@ -56,8 +56,14 @@
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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list