Reset exception handler in tests setup
Merge pull request #1023 from romainneutron/tests-exception-handler

[3.8] Reset exception handler in tests setup