Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Public Attributes
distutils.tests.test_cygwinccompiler.FakePopen Class Reference
Inheritance diagram for distutils.tests.test_cygwinccompiler.FakePopen:
Inheritance graph
[legend]
Collaboration diagram for distutils.tests.test_cygwinccompiler.FakePopen:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__

Public Attributes

 cmd
 stdout
_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Static Public Attributes

 test_class = None

Detailed Description

Definition at line 16 of file test_cygwinccompiler.py.


Constructor & Destructor Documentation

def distutils.tests.test_cygwinccompiler.FakePopen.__init__ (   self,
  cmd,
  shell,
  stdout 
)

Definition at line 19 of file test_cygwinccompiler.py.

00019 
00020     def __init__(self, cmd, shell, stdout):
00021         self.cmd = cmd.split()[0]
00022         exes = self.test_class._exes
00023         if self.cmd in exes:
00024             # issue #6438 in Python 3.x, Popen returns bytes
00025             self.stdout = BytesIO(exes[self.cmd])
00026         else:
00027             self.stdout = os.popen(cmd, 'r')
00028 

Here is the caller graph for this function:


Member Data Documentation

Definition at line 20 of file test_cygwinccompiler.py.

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.

Definition at line 24 of file test_cygwinccompiler.py.

Definition at line 17 of file test_cygwinccompiler.py.


The documentation for this class was generated from the following file: