pombreda / python-nose

Automatically exported from code.google.com/p/python-nose
0 stars 0 forks source link

Recover from segfaults #396

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
One of my tests sometimes causes a segfault. When that happens, Nose quits 
completely. I think that it ditches the entire test session and doesn't return 
any report.

It would be nice if Nose would be able to recover from a segmentation fault in 
a test.

Original issue reported on code.google.com by ram.rac...@gmail.com on 3 Feb 2011 at 2:15

GoogleCodeExporter commented 9 years ago
Could implement this by registering a signal handler (for SIGSEGV in POSIX, or 
equivalent in windows) and raising an appropriate exception.

I'm not sure if it is wise to ignore segfaults in general, but we could 
probably do this as an optional plugin for those who desperately want it.

Original comment by gazi...@gmail.com on 25 Nov 2011 at 6:10