fixes nose's assert_raises for python 2.6