Added signal catching and handling in C and Cython
This commit is contained in:
@ -23,7 +23,7 @@ from obitools3.dms.capi.obiview cimport NUC_SEQUENCE_COLUMN, \
|
||||
import shutil
|
||||
import string
|
||||
import random
|
||||
#import subprocess
|
||||
from cpython.exc cimport PyErr_CheckSignals
|
||||
|
||||
|
||||
VIEW_TYPES = [b"", b"NUC_SEQS_VIEW"]
|
||||
@ -512,6 +512,7 @@ def run(config):
|
||||
|
||||
i = 0
|
||||
for t in range(config['test']['nbtests']):
|
||||
PyErr_CheckSignals()
|
||||
random_test(config, infos)
|
||||
print_test(config, repr(infos['view']))
|
||||
i+=1
|
||||
|
Reference in New Issue
Block a user