Skip to content

test_file_post_data error on Windows #669

Closed
piotr-dobrogost opened this Issue Jun 10, 2012 · 0 comments

1 participant

@piotr-dobrogost
(requests) C:\requests\tests>python test_requests.py RequestsTestSuite.test_file_post_data
E
======================================================================
ERROR: test_file_post_data (__main__.RequestsTestSuite)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_requests.py", line 476, in test_file_post_data
    r = post(service('post'), data=open(testfile.name, "rb"),
IOError: [Errno 13] Permission denied: 'c:\\users\\piotr\\appdata\\local\\temp\\tmpfpitom'

----------------------------------------------------------------------
Ran 1 test in 0.003s

FAILED (errors=1)

see How do you fix the following Django Error: “Type: IOError” “Value: [Errno 13] Permission denied”

@piotr-dobrogost piotr-dobrogost pushed a commit to piotr-dobrogost/requests that referenced this issue Jun 10, 2012
Piotr Dobrogost Fixes issue #669
NamedTemporaryFile was being automatically deleted on Windows thus
couldn't be opened later for reading
8d75cdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.