Commit e26017e
test the custom signal handler with cypari2
This test triggers the following bug on cysignals 1.12.0 - 1.12.2:
```
Python 3.13.1 (main, Dec 14 2024, 12:44:03) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cypari2
>>> from cysignals.alarm import alarm
>>> try:
... alarm(0.5)
... while True: pass
... except:
... pass
...
>>> cypari2.Pari()
Traceback (most recent call last):
File "<python-input-3>", line 1, in <module>
cypari2.Pari()
~~~~~~~~~~~~^^
File "cypari2/pari_instance.pyx", line 471, in cypari2.pari_instance.Pari.__cinit__
File "cypari2/closure.pyx", line 138, in cypari2.closure._pari_init_closure
cysignals.signals.AlarmInterrupt
```1 parent 0ba9995 commit e26017e
2 files changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments