def METHOD_NAME(self):
    # Test that PYTHONINSPECT set during a script causes an interactive session to start.
    # Note: this test depends on the -i option forcing Python to treat stdin as interactive,
    # and on Jython permitting manipulation of sys.flags.inspect (which CPython won't)
    # so that PYTHONINSPECT can have some effect.
    filename = test.test_support.TESTFN
    self.addCleanup(test.test_support.unlink, filename)
    with open(filename, "w") as script:
        print >>script, "import sys, os"
        print >>script, "sys.flags.inspect = False"
        print >>script, "os.environ['PYTHONINSPECT'] = 'whatever'"
        print >>script, "print os.environ['PYTHONINSPECT']"
    expected = ['whatever', '>>> ']
    result = assert_python_ok('-i', filename)
    self.assertListEqual(expected, result[1].splitlines())