def test_1(self):
        # First, compile a function with a new ProfileMode() object
        # No need to call that function
        x = T.matrix()
        mode = ProfileMode()
        theano.function([x], x * 2, mode=mode)

        # Then, build a mode with the same linker, and a modified optimizer
        default_mode = theano.compile.mode.get_default_mode()
        modified_mode = default_mode.including('specialize')

        # The following line used to fail, with Python 2.4, in July 2012,
        # because an fgraph was associated to the default linker
        copy.deepcopy(modified_mode)

        # More straightforward test
        linker = theano.compile.mode.get_default_mode().linker
        assert not hasattr(linker, "fgraph") and linker.fgraph is None
dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/compile/tests/test_modes.py/T_ProfileMode_WrapLinker.test_1/operator `or` -> `and`