Back to index

python3.2  3.2.2
Classes | Functions
test.test_signal Namespace Reference

Classes

class  HandlerBCalled
class  InterProcessSignalTests
class  BasicSignalTests
class  WindowsSignalTests
class  WakeupSignalTests
class  SiginterruptTest
class  ItimerTest

Functions

def exit_subprocess
def ignoring_eintr
def test_main

Function Documentation

Use os._exit(0) to exit the current subprocess.

Otherwise, the test catches the SystemExit and continues executing
in parallel with the original test, so you wind up with an
exponential number of tests running concurrently.

Definition at line 24 of file test_signal.py.

00024 
00025 def exit_subprocess():
00026     """Use os._exit(0) to exit the current subprocess.
00027 
00028     Otherwise, the test catches the SystemExit and continues executing
00029     in parallel with the original test, so you wind up with an
00030     exponential number of tests running concurrently.
00031     """
00032     os._exit(0)
00033 

Here is the caller graph for this function:

def test.test_signal.ignoring_eintr (   __func,
  args,
  kwargs 
)

Definition at line 34 of file test_signal.py.

00034 
00035 def ignoring_eintr(__func, *args, **kwargs):
00036     try:
00037         return __func(*args, **kwargs)
00038     except EnvironmentError as e:
00039         if e.errno != errno.EINTR:
00040             raise
00041         return None
00042 
00043 
@unittest.skipIf(sys.platform == "win32", "Not valid on Windows")

Here is the caller graph for this function:

Definition at line 514 of file test_signal.py.

00514 
00515 def test_main():
00516     try:
00517         support.run_unittest(BasicSignalTests, InterProcessSignalTests,
00518                              WakeupSignalTests, SiginterruptTest,
00519                              ItimerTest, WindowsSignalTests)
00520     finally:
00521         support.reap_children()
00522