Oh yeah. Context managers were introduced in 2.6. Skip 2.5 on Travis-CI.
Switch to 3.x-compatible octal literals.
Switch to 3.x-compatible try/except syntax.
Make run_test.py return a meaningful exit code for Travis-CI.