{"action":"created","issue":{"url":"https://api.github.com/repos/avocado-framework/avocado/issues/842","labels_url":"https://api.github.com/repos/avocado-framework/avocado/issues/842/labels{/name}","comments_url":"https://api.github.com/repos/avocado-framework/avocado/issues/842/comments","events_url":"https://api.github.com/repos/avocado-framework/avocado/issues/842/events","html_url":"https://github.com/avocado-framework/avocado/pull/842","id":111625204,"number":842,"title":"avocado/core/data_dir.py: rely on `tempfile.mkstemp()` to choose a te…","user":{"login":"clebergnu","id":447178,"avatar_url":"https://avatars.githubusercontent.com/u/447178?v=3","gravatar_id":"","url":"https://api.github.com/users/clebergnu","html_url":"https://github.com/clebergnu","followers_url":"https://api.github.com/users/clebergnu/followers","following_url":"https://api.github.com/users/clebergnu/following{/other_user}","gists_url":"https://api.github.com/users/clebergnu/gists{/gist_id}","starred_url":"https://api.github.com/users/clebergnu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clebergnu/subscriptions","organizations_url":"https://api.github.com/users/clebergnu/orgs","repos_url":"https://api.github.com/users/clebergnu/repos","events_url":"https://api.github.com/users/clebergnu/events{/privacy}","received_events_url":"https://api.github.com/users/clebergnu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/avocado-framework/avocado/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-15T14:11:50Z","updated_at":"2015-10-21T06:03:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/avocado-framework/avocado/pulls/842","html_url":"https://github.com/avocado-framework/avocado/pull/842","diff_url":"https://github.com/avocado-framework/avocado/pull/842.diff","patch_url":"https://github.com/avocado-framework/avocado/pull/842.patch"},"body":"…mp dir\r\n\r\nFrom the Python `tempfile.mkstemp()` docs:\r\n\r\nThe default directory is chosen from a platform-dependent list, but\r\nthe user of the application can control the directory location by\r\nsetting the TMPDIR, TEMP or TMP environment variables.\r\n\r\nSo, let's let `tempfile.mkstemp()` itself choose the temp dir, based\r\non what the use may have set in environment variables.\r\n\r\nSigned-off-by: Cleber Rosa <crosa@redhat.com>"},"comment":{"url":"https://api.github.com/repos/avocado-framework/avocado/issues/comments/149791865","html_url":"https://github.com/avocado-framework/avocado/pull/842#issuecomment-149791865","issue_url":"https://api.github.com/repos/avocado-framework/avocado/issues/842","id":149791865,"user":{"login":"clebergnu","id":447178,"avatar_url":"https://avatars.githubusercontent.com/u/447178?v=3","gravatar_id":"","url":"https://api.github.com/users/clebergnu","html_url":"https://github.com/clebergnu","followers_url":"https://api.github.com/users/clebergnu/followers","following_url":"https://api.github.com/users/clebergnu/following{/other_user}","gists_url":"https://api.github.com/users/clebergnu/gists{/gist_id}","starred_url":"https://api.github.com/users/clebergnu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clebergnu/subscriptions","organizations_url":"https://api.github.com/users/clebergnu/orgs","repos_url":"https://api.github.com/users/clebergnu/repos","events_url":"https://api.github.com/users/clebergnu/events{/privacy}","received_events_url":"https://api.github.com/users/clebergnu/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T06:03:32Z","updated_at":"2015-10-21T06:03:32Z","body":"Yep, as I said, my main grief is not with `tempfile` behavior, but with how it's documented. With that being said, it looks like we have an agreement on relying on bare `tempfile`, despite it's possible limitations, or despite it being \"too smart\" at times, right?"}}