Don't let pytest capture test outputs, fix warning for the missing env var.