def METHOD_NAME(self):
    emptyfile = tempfile.NamedTemporaryFile()
    try:
        self.assertRaises((IOError, EOFError), _hotshot.logreader,
                          emptyfile.name)
    finally:
        emptyfile.close()
    gc.collect()