'Regression test for https://github.com/astropy/astropy/issues/4122'

def test_diff_types(self):

    f = io.StringIO()
    a = 1.0
    b = '1.0'
    report_diff_values(f, a, b)
    out = f.getvalue()
    assert (out.lstrip('u') == "        (float)    a>    1.0\n                (str)    b>    '1.0'\n                                            ?    +            +\n")
