Changeset 69171 in webkit


Ignore:
Timestamp:
Oct 5, 2010 8:38:51 PM (14 years ago)
Author:
tony@chromium.org
Message:

2010-10-05 Tony Chang <tony@chromium.org>

Reviewed by Darin Adler.

fix the link to the expected image on windows
https://bugs.webkit.org/show_bug.cgi?id=47228

  • Scripts/webkitpy/layout_tests/test_types/test_type_base.py: On

windows, the file must be opened in binary mode when writing
binary data.

Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r69169 r69171  
     12010-10-05  Tony Chang  <tony@chromium.org>
     2
     3        Reviewed by Darin Adler.
     4
     5        fix the link to the expected image on windows
     6        https://bugs.webkit.org/show_bug.cgi?id=47228
     7
     8        * Scripts/webkitpy/layout_tests/test_types/test_type_base.py: On
     9            windows, the file must be opened in binary mode when writing
     10            binary data.
     11
    1122010-10-05  Adam Barth  <abarth@webkit.org>
    213
  • trunk/WebKitTools/Scripts/webkitpy/layout_tests/test_types/test_type_base.py

    r67974 r69171  
    162162        """This method assumes that byte_array is already encoded
    163163        into the right format."""
    164         with codecs.open(file_path, "w", encoding=encoding) as file:
     164        open_mode = 'w'
     165        if encoding is None:
     166            open_mode = 'w+b'
     167        with codecs.open(file_path, open_mode, encoding=encoding) as file:
    165168            file.write(contents)
    166169
Note: See TracChangeset for help on using the changeset viewer.