TST: Don't use assertRaises as context manager

Apparently this functionality wasn't available in Python 2.6.