use txt file extension for tempfile

This commit is contained in:
Alan Hamlett 2015-09-08 15:56:06 -07:00
parent 2dddbd8094
commit 032bd99d97

View file

@ -77,7 +77,7 @@ class OfflineQueueTestCase(utils.TestCase):
response.status_code = 500 response.status_code = 500
self.patched['wakatime.packages.requests.adapters.HTTPAdapter.send'].return_value = response self.patched['wakatime.packages.requests.adapters.HTTPAdapter.send'].return_value = response
with tempfile.NamedTemporaryFile() as fh: with tempfile.NamedTemporaryFile(suffix='.txt') as fh:
now = u(int(time.time())) now = u(int(time.time()))
entity = fh.name entity = fh.name