FakeProcess.communicate lacks an input and timeout args

Bug #1373224 reported by Steve Baker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python Fixtures
Fix Committed
High
Free Ekanayaka

Bug Description

From subprocess.Popen:

    def communicate(self, input=None):
        """...
        The optional input argument should be a
        string to be sent to the child process, or None, if no data
        should be sent to the child.

This prevents FakePopen from being used to test code that calls communicate with an argument.

In Python 3 it lacks the timeout argument too:

https://docs.python.org/3/library/subprocess.html#subprocess.Popen.communicate

Changed in python-fixtures:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Free Ekanayaka (free.ekanayaka) wrote :

Updated the bug to mention also the lack of the timeout argument.

summary: - FakeProcess.communicate lacks an input arg
+ FakeProcess.communicate lacks an input and timeout args
description: updated
Revision history for this message
Free Ekanayaka (free.ekanayaka) wrote :
Revision history for this message
Free Ekanayaka (free.ekanayaka) wrote :
Changed in python-fixtures:
assignee: nobody → Free Ekanayaka (free.ekanayaka)
status: Triaged → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.