Changeset 139081 in webkit


Ignore:
Timestamp:
Jan 8, 2013 10:54:35 AM (11 years ago)
Author:
zandobersek@gmail.com
Message:

[GTK] Build failures when building with python 3.3
https://bugs.webkit.org/show_bug.cgi?id=106194

Reviewed by Dirk Pranke.

Python 3.3 introduced changes to dictionaries which can result in changed
iteration order. More about these changes:
http://docs.python.org/3.3/whatsnew/3.3.html#pep-412-key-sharing-dictionary
http://www.python.org/dev/peps/pep-0412/#cons

This causes the Source/WebCore/inspector/generate-inspector-protocol-version
script to fail the self-testing when using Python 3.3. These changes work
around this problem by not checking for expected errors in order but rather
for their presence in the error output sequence. The number of actual errors
is also checked to be equal to the number of expected errors.

No new tests - no new functionality.

  • inspector/generate-inspector-protocol-version:

(self_test):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r139080 r139081  
     12013-01-08  Zan Dobersek  <zandobersek@gmail.com>
     2
     3        [GTK] Build failures when building with python 3.3
     4        https://bugs.webkit.org/show_bug.cgi?id=106194
     5
     6        Reviewed by Dirk Pranke.
     7
     8        Python 3.3 introduced changes to dictionaries which can result in changed
     9        iteration order. More about these changes:
     10        http://docs.python.org/3.3/whatsnew/3.3.html#pep-412-key-sharing-dictionary
     11        http://www.python.org/dev/peps/pep-0412/#cons
     12
     13        This causes the Source/WebCore/inspector/generate-inspector-protocol-version
     14        script to fail the self-testing when using Python 3.3. These changes work
     15        around this problem by not checking for expected errors in order but rather
     16        for their presence in the error output sequence. The number of actual errors
     17        is also checked to be equal to the number of expected errors.
     18
     19        No new tests - no new functionality.
     20
     21        * inspector/generate-inspector-protocol-version:
     22        (self_test):
     23
    1242013-01-08  Antoine Quint  <graouts@apple.com>
    225
  • trunk/Source/WebCore/inspector/generate-inspector-protocol-version

    r127757 r139081  
    304304        "Network.requestWillBeSent: required parameter is missing: documentURL" ]
    305305    for i in range(len(errors)):
    306         if errors[i] != golden_errors[i]:
     306        if errors[i] not in golden_errors:
    307307            return False
    308     return True
     308    return len(errors) is len(golden_errors)
    309309
    310310def main():
Note: See TracChangeset for help on using the changeset viewer.