Back to index

python3.2  3.2.2
Public Member Functions
test.test_subprocess.BaseTestCase Class Reference
Inheritance diagram for test.test_subprocess.BaseTestCase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def setUp
def tearDown
def assertStderrEqual

Detailed Description

Definition at line 44 of file test_subprocess.py.


Member Function Documentation

def test.test_subprocess.BaseTestCase.assertStderrEqual (   self,
  stderr,
  expected,
  msg = None 
)

Definition at line 56 of file test_subprocess.py.

00056 
00057     def assertStderrEqual(self, stderr, expected, msg=None):
00058         # In a debug build, stuff like "[6580 refs]" is printed to stderr at
00059         # shutdown time.  That frustrates tests trying to check stderr produced
00060         # from a spawned Python process.
00061         actual = support.strip_python_stderr(stderr)
00062         self.assertEqual(actual, expected, msg)
00063 

Here is the call graph for this function:

Here is the caller graph for this function:

Reimplemented in test.test_subprocess.CommandsWithSpaces, and test.test_subprocess.ProcessTestCaseNoPoll.

Definition at line 45 of file test_subprocess.py.

00045 
00046     def setUp(self):
00047         # Try to minimize the number of children we have so this test
00048         # doesn't crash on some buildbots (Alphas in particular).
00049         support.reap_children()

Here is the caller graph for this function:

Reimplemented in test.test_subprocess.CommandsWithSpaces, and test.test_subprocess.ProcessTestCaseNoPoll.

Definition at line 50 of file test_subprocess.py.

00050 
00051     def tearDown(self):
00052         for inst in subprocess._active:
00053             inst.wait()
00054         subprocess._cleanup()
00055         self.assertFalse(subprocess._active, "subprocess._active not empty")

Here is the call graph for this function:

Here is the caller graph for this function:


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