unterminated message should raise ValueError, not AssertionError