Back to index

python3.2  3.2.2
Public Member Functions
test.test_signal.BasicSignalTests Class Reference

List of all members.

Public Member Functions

def trivial_signal_handler
def test_out_of_range_signal_number_raises_error
def test_setting_signal_handler_to_none_raises_error
def test_getsignal

Detailed Description

Definition at line 194 of file test_signal.py.


Member Function Documentation

Definition at line 208 of file test_signal.py.

00208 
00209     def test_getsignal(self):
00210         hup = signal.signal(signal.SIGHUP, self.trivial_signal_handler)
00211         self.assertEqual(signal.getsignal(signal.SIGHUP),
00212                          self.trivial_signal_handler)
00213         signal.signal(signal.SIGHUP, hup)
00214         self.assertEqual(signal.getsignal(signal.SIGHUP), hup)
00215 
00216 
@unittest.skipUnless(sys.platform == "win32", "Windows specific")

Here is the call graph for this function:

Definition at line 198 of file test_signal.py.

00198 
00199     def test_out_of_range_signal_number_raises_error(self):
00200         self.assertRaises(ValueError, signal.getsignal, 4242)
00201 
00202         self.assertRaises(ValueError, signal.signal, 4242,
00203                           self.trivial_signal_handler)

Here is the call graph for this function:

Definition at line 204 of file test_signal.py.

00204 
00205     def test_setting_signal_handler_to_none_raises_error(self):
00206         self.assertRaises(TypeError, signal.signal,
00207                           signal.SIGUSR1, None)

Here is the call graph for this function:

Definition at line 195 of file test_signal.py.

00195 
00196     def trivial_signal_handler(self, *args):
00197         pass

Here is the caller graph for this function:


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