Skip to content

test_file_post_data error on Windows #669

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

1 participant

(requests) C:\requests\tests>python RequestsTestSuite.test_file_post_data
ERROR: test_file_post_data (__main__.RequestsTestSuite)
Traceback (most recent call last):
  File "", line 476, in test_file_post_data
    r = post(service('post'), data=open(, "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
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.