pymc-devs/pymc — Issue #71: No 'with' statement in Python 2.5
Author: jskowron
Created: 2011-11-29 20:02:39+00:00
State: open

For example, line 17 in file pymc/tests/test_adaptive.py is using 'with' statement. My Python 2.5.2 does not support this.

if __name__ == '__main__':
with warnings.catch_warnings():
warnings.simplefilter('ignore', FutureWarning)
nose.runmodule()

This could be helpful to solve both, 'with' problem and 'catch_warnings':
http://stackoverflow.com/questions/2059675/catching-warnings-pre-python-2-6