from common import BaseError
class TestError(BaseError):
pass
def test_error():
raise TestError("test error.")
# Traceback (most recent call last):
# File "<stdin>", line 55, in <module>
# File "<stdin>", line 6, in test_error
# TestError: test error.