| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
On Ubuntu (at least the 18.10 dev version) sys.excepthook is some apport_excepthook
object and not the default Python one. Our pytest extension was checking
that sys.excepthook is the default which made every test fail as a result.
Be less strict and don't assume anything about sys.excepthook instead.
|
|
|
|
|
| |
Our plugin raising exceptions seems to confuse other hooks, marking it
to be run first gets rid of them.
|
|
|
|
| |
See !66
|
| |
|
|
In PyGObject when an exception is raised in a closure called from C then
the error gets passed to sys.excepthook (on the main thread at least)
and the error is by default printed to stdout. Since pytest by default
hides stdout, errors can be easily missed now.
To make these errors more visible add a test wrapper which checks
sys.excepthook for unhandled exceptions and reraises them.
This makes the tests fail and as a bonus also shows the right
stack trace instead of just the error message.
|