Use a StringIO instance to fake the history log file