def close(self):
        if self.closed:
            return
        try:
            files = self.files.itervalues()
        except AttributeError:
            files = ()
        for f in files:
            try:
                f.close()
            except Exception, e:
                pass
        self.closed = True
Restore stdout to normal.
dataset/ETHPy150Open IanLewis/kay/kay/lib/werkzeug/test.py/EnvironBuilder.close--crossover with--dataset/ETHPy150Open google/gfw-toolkit/toolkit/tests/directory_api_users_test_base.py/DirectoryApiUsersTestBase.tearDown