]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Prevent SystemExits when running tests
authorKevin Benton <blak111@gmail.com>
Mon, 1 Sep 2014 20:03:27 +0000 (13:03 -0700)
committerKevin Benton <blak111@gmail.com>
Mon, 1 Sep 2014 22:05:16 +0000 (15:05 -0700)
commit486937907a5dec6f1f227a1bc3330cad061ff437
tree9a727c0fbf515cb526bcaaced2e353954f2e8031
parent6c38103e095dbf107bdb199979be8e5e909d7e74
Prevent SystemExits when running tests

Adds a check for SystemExit exceptions during tests
to convert them into a test failure rather than an exit.
Includes the traceback in the failure so the source of
the exit can be located.

Related-Bug: #1364171
Change-Id: I2c7d9010ebf935d39ed58fe7a6fc4a1a867e2548
neutron/tests/base.py
neutron/tests/unit/test_basetestcase.py [new file with mode: 0644]