File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -3159,7 +3159,7 @@ cdef class Integer(sage.structure.element.EuclideanDomainElement):
31593159 sage: from sage.doctest.util import ensure_interruptible_after
31603160 sage: n = prod(primes_first_n(25)) # needs sage.libs.pari
31613161 sage: for i in range(20): # long time # needs sage.libs.pari
3162- ....: with ensure_interruptible_after(RDF.random_element(1e-3, 0.5)):
3162+ ....: with ensure_interruptible_after(RDF.random_element(1e-3, 0.5), max_wait_after_interrupt=0.5 ):
31633163 ....: _ = n.divisors()
31643164
31653165 Test a strange method::
@@ -3298,6 +3298,7 @@ cdef class Integer(sage.structure.element.EuclideanDomainElement):
32983298 sorted_c[sorted_len] = all_c[tip]
32993299 sorted_len += 1
33003300 tip += 1
3301+ if (tip & 0x1f ) == 0 : sig_check()
33013302 sorted_c[sorted_len] = apn_c
33023303 sorted_len += 1
33033304
@@ -3323,6 +3324,7 @@ cdef class Integer(sage.structure.element.EuclideanDomainElement):
33233324 break
33243325 sorted .append(all_tip)
33253326 tip += 1
3327+ if (tip & 0x1f ) == 0 : sig_check()
33263328 sorted .append(apn)
33273329
33283330 if fits_c:
You can’t perform that action at this time.
0 commit comments