Back to index

python3.2  3.2.2
Public Member Functions
test.test_multiprocessing.TestStdinBadfiledescriptor Class Reference

List of all members.

Public Member Functions

def test_queue_in_process
def test_pool_in_process
def test_flushing

Detailed Description

Definition at line 2116 of file test_multiprocessing.py.


Member Function Documentation

Definition at line 2129 of file test_multiprocessing.py.

02129 
02130     def test_flushing(self):
02131         sio = io.StringIO()
02132         flike = _file_like(sio)
02133         flike.write('foo')
02134         proc = multiprocessing.Process(target=lambda: flike.flush())
02135         flike.flush()
02136         assert sio.getvalue() == 'foo'

Definition at line 2124 of file test_multiprocessing.py.

02124 
02125     def test_pool_in_process(self):
02126         p = multiprocessing.Process(target=pool_in_process)
02127         p.start()
02128         p.join()

Definition at line 2118 of file test_multiprocessing.py.

02118 
02119     def test_queue_in_process(self):
02120         queue = multiprocessing.Queue()
02121         proc = multiprocessing.Process(target=_TestProcess, args=(queue,))
02122         proc.start()
02123         proc.join()

Here is the call graph for this function:


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