Build failures when building with python 3.3
authorTor Arne Vestbø <tor.arne.vestbo@digia.com>
Thu, 2 May 2013 09:33:18 +0000 (11:33 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 3 May 2013 15:37:55 +0000 (17:37 +0200)
commita2e31061d4a24fceb4d32f4df301150ee1cc8af1
tree825924e6d7f55a199a6f1bb2f02ceb07451ee3c0
parent498d0427290f5a9957bfab1bb521eb10b9b9693a
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):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139081 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Change-Id: I13c3e499bcb662466701879d015f5a378a28cd0b
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Source/WebCore/ChangeLog
Source/WebCore/inspector/generate-inspector-protocol-version