Remove "with" statement from tests to accomodate python 2.4