+16
−0
+0
−18
Loading
Functionally teor's patch is fine as test/__init__.py is only imported in testing contexts. That said, as a general practice it's better to invoke functional code (like signal listeners) when a module is invoked rather than imported. All testing is invoked through run_tests.py's main method, so we can register our signal handlers there instead.