def test_for_handled_unexpected_eof_error(self) -> None:
        """
        Test that an unexpected EOF SyntaxError is nicely presented.
        """
        with pytest.raises(black.parsing.InvalidInput) as exc_info:
            black.lib2to3_parse("print(", {})

        exc_info.match("Cannot parse: 1:6: Unexpected EOF in multi-line statement")

        Test that an unexpected EOF SyntaxError is nicely presented.
        
tests/test_black.py