You'd also have to make the turtle raise an exception to use this approach, and I don't think turtle supports that. I'm going to leave it as-is. Also, note that I copy-pasted this test, which also appears in similar forms in AssertRaisesAsCallableTestCase and AssertRaisesAndContainsTestCase. If any of these gets changed, they probably all should.