'Time formats that are not allowed to take Quantity input.'

def test_no_quantity_input_allowed(self):

    qy = (1990.0 * u.yr)
    for fmt in ('iso', 'yday', 'datetime', 'byear', 'byear_str', 'jyear_str'):
        with pytest.raises(ValueError):
            Time(qy, format=fmt, scale='utc')
