mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
merge 3.3
This commit is contained in:
commit
9f30abd393
3 changed files with 13 additions and 3 deletions
|
@ -219,6 +219,13 @@ class WindowsSignalTests(unittest.TestCase):
|
|||
signal.signal(7, handler)
|
||||
|
||||
|
||||
class WakeupFDTests(unittest.TestCase):
|
||||
|
||||
def test_invalid_fd(self):
|
||||
fd = support.make_bad_fd()
|
||||
self.assertRaises(ValueError, signal.set_wakeup_fd, fd)
|
||||
|
||||
|
||||
@unittest.skipIf(sys.platform == "win32", "Not valid on Windows")
|
||||
class WakeupSignalTests(unittest.TestCase):
|
||||
def check_wakeup(self, test_body, *signals, ordered=True):
|
||||
|
@ -861,8 +868,8 @@ class PendingSignalsTests(unittest.TestCase):
|
|||
def test_main():
|
||||
try:
|
||||
support.run_unittest(PosixTests, InterProcessSignalTests,
|
||||
WakeupSignalTests, SiginterruptTest,
|
||||
ItimerTest, WindowsSignalTests,
|
||||
WakeupFDTests, WakeupSignalTests,
|
||||
SiginterruptTest, ItimerTest, WindowsSignalTests,
|
||||
PendingSignalsTests)
|
||||
finally:
|
||||
support.reap_children()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue