The script now checks if the local variable 'check_isfinite' exists before assigning to it.
Small bug fix.
Merge pull request #1025 from AlassaneNdiaye/fix__test_pool.py

Fixes to the script pylearn2/sandbox/cuda_convnet/tests/test_pool.py