BUG: fix a bug in my assert_raises usage