STINNER Victor added the comment:

Oh, I think that #19421 was also a duplicate of this issue. Updated example 
from this issue: attached script crash_logging_exc_info.py.

Output:
---
$ ./python crash_logging_exc_info.py
Erreur de segmentation (core dumped)
---

Output with iostate_shutdown.patch applied:
---
$ ./python ~/crash_logging_exc_info.py 
CRITICAL:root:error
Traceback (most recent call last):
  File "/home/haypo/crash_logging_exc_info.py", line 7, in __del__
    raise ValueError()
ValueError
---

@Antoine: You should also add a test based on crash_logging_exc_info.py in 
test_logging, to test the whole feature (display a traceback during Python 
shutdown).

----------
Added file: http://bugs.python.org/file33243/crash_logging_exc_info.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20037>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to