Don't know about that PEP, for the test, I think you can even just do `assert_raises((AttributeError, TypeError), ...)`