Back to index

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

List of all members.

Public Member Functions

def test_issue9324

Detailed Description

Definition at line 217 of file

Member Function Documentation

Definition at line 218 of file

00219     def test_issue9324(self):
00220         # Updated for issue #10003, adding SIGBREAK
00221         handler = lambda x, y: None
00222         for sig in (signal.SIGABRT, signal.SIGBREAK, signal.SIGFPE,
00223                     signal.SIGILL, signal.SIGINT, signal.SIGSEGV,
00224                     signal.SIGTERM):
00225             # Set and then reset a handler for signals that work on windows
00226             signal.signal(sig, signal.signal(sig, handler))
00228         with self.assertRaises(ValueError):
00229             signal.signal(-1, handler)
00231         with self.assertRaises(ValueError):
00232             signal.signal(7, handler)
@unittest.skipIf(sys.platform == "win32", "Not valid on Windows")

Here is the call graph for this function:

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