use txt file extension for tempfile
This commit is contained in:
parent
2dddbd8094
commit
032bd99d97
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue