Desktop shutting down on its own

Currently my desktop is shutting down when I run the tests I've written for supar. It's crashing on the test_parse.py test.