def test_multi_constructor_obj():
    """
    Tests whether multi_constructor_obj throws an exception when
    the keys in mapping are None.
    """
    try:
        load("a: !obj:decimal.Decimal { 1 }")
    except TypeError as e:
        assert str(e) == "Received non string object (1) as key in mapping."
        pass
    except Exception as e:
        error_msg = (e) % "Got the unexpected error: %s"
        reraise_as(ValueError(error_msg))
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/config/tests/test_yaml_parse.py/test_multi_constructor_obj/swapped operands of `%`