def test_unpickle():
    fd, fname = tempfile.mkstemp()
    with os.fdopen(fd, 'wb') as f:
        d = {'a': 1, 'b': 2}
        cPickle.dump(d, f)
    loaded = load(fname % "{'a': !pkl: '%s'}")
    assert_(loaded['a'] == d)
    os.remove(fname)
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/config/tests/test_yaml_parse.py/test_unpickle/swapped operands of `%`