Django

Code

Changeset 7909

Show
Ignore:
Timestamp:
07/12/08 15:44:05 (3 months ago)
Author:
jacob
Message:

FIxed #7696: fixed model_form tests on Windows after [7814]. Thanks, Marty Alchin.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/modeltests/model_forms/models.py

    r7859 r7909  
    901901...         model = ImageFile 
    902902 
    903 >>> image_data = open(os.path.join(os.path.dirname(__file__), "test.png")).read() 
     903>>> image_data = open(os.path.join(os.path.dirname(__file__), "test.png"), 'rb').read() 
    904904 
    905905>>> f = ImageFileForm(data={'description': u'An image'}, files={'image': SimpleUploadedFile('test.png', image_data)})