I don't think they generally would, Ed. Unless they had previously had a real life experience with such a hole!!
As 'Humans', we only perceive such illusions, including shapes/perspective due to real life experiences when little.
Some tiny kittens are 'afraid' standing on high glass, as something seems to be pre-programmed into their brains!
And I've had cats that go berserk watching say birds or other cats on TV, and others that don't acknowledge their existence!!