mirror of
https://github.com/python/cpython.git
synced 2025-07-31 07:04:42 +00:00
Reverting the Revision: 77368. I committed Flox's big patch for tests by
mistake. ( It may come in for sure tough)
This commit is contained in:
parent
3ddc435af6
commit
ce8e33a095
107 changed files with 436 additions and 794 deletions
|
@ -14,7 +14,7 @@ process_pid = os.getpid()
|
|||
signalled_all=thread.allocate_lock()
|
||||
|
||||
|
||||
def registerSignals(for_usr1, for_usr2, for_alrm):
|
||||
def registerSignals((for_usr1, for_usr2, for_alrm)):
|
||||
usr1 = signal.signal(signal.SIGUSR1, for_usr1)
|
||||
usr2 = signal.signal(signal.SIGUSR2, for_usr2)
|
||||
alrm = signal.signal(signal.SIGALRM, for_alrm)
|
||||
|
@ -74,11 +74,11 @@ def test_main():
|
|||
signal.SIGUSR2 : {'tripped': 0, 'tripped_by': 0 },
|
||||
signal.SIGALRM : {'tripped': 0, 'tripped_by': 0 } }
|
||||
|
||||
oldsigs = registerSignals(handle_signals, handle_signals, handle_signals)
|
||||
oldsigs = registerSignals((handle_signals, handle_signals, handle_signals))
|
||||
try:
|
||||
run_unittest(ThreadSignals)
|
||||
finally:
|
||||
registerSignals(*oldsigs)
|
||||
registerSignals(oldsigs)
|
||||
|
||||
if __name__ == '__main__':
|
||||
test_main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue