diff --git a/script/test/test_abort.py b/script/test/test_abort.py index af27510..f82d9fd 100644 --- a/script/test/test_abort.py +++ b/script/test/test_abort.py @@ -11,14 +11,14 @@ def ctype_async_raise(thread, exception): # Huh? Why would we notify more than one threads? # Because we punch a hole into C level interpreter. # So it is better to clean up the mess. - ctypes.pythonapi.PyThreadState_SetAsyncExc(target_tid, NULL) + ctypes.pythonapi.PyThreadState_SetAsyncExc(tid, NULL) raise SystemError("PyThreadState_SetAsyncExc failed") def on_abort(parent_thread): print ("abort") - #ctype_async_raise(parent_thread, KeyboardInterrupt) + ctype_async_raise(parent_thread, KeyboardInterrupt) time.sleep(10.0) \ No newline at end of file