Fixing the ResourceWarning: unclosed file.
Fixing the ResourceWarning: unclosed file.

(Also adding some comments.)

test_basic.py:24: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/q' mode='r' encoding='UTF-8'>
  logdata = open('/tmp/q', 'r').read()

zestyping/q