Don't write bytecode when running tests

Writing bytecode can mess up the detection of updated files and
directories