Ticket #15362: file_uploads.diff

File file_uploads.diff, 533 bytes (added by mila, 4 years ago)
  • tests/regressiontests/file_uploads/views.py

    diff --git a/tests/regressiontests/file_uploads/views.py b/tests/regressiontests/file_uploads/views.py
    index 50bc3f8..d80a629 100644
    a b def file_upload_unicode_name(request): 
    7070    # (shutil.rmtree used elsewhere in the tests to clean up the
    7171    # upload directory has been seen to choke on unicode
    7272    # filenames on Windows.)
    73     obj.delete()
     73    os.unlink(full_name)
    7474
    7575    if response:
    7676        return response
Back to Top