Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(677)

Unified Diff: test/win/gyptest-link-enable-uac.py

Issue 1454433002: Python 3 compatibility Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Rebase with master (4ec6c4e3a94bd04a6da2858163d40b2429b8aad1) Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/win/gyptest-link-enable-uac.py
diff --git a/test/win/gyptest-link-enable-uac.py b/test/win/gyptest-link-enable-uac.py
index 131e07ec1f362566068c839c6c71b8ed39c97179..731e50a135a9289bbec2d9fe02f33392b48dd5d8 100644
--- a/test/win/gyptest-link-enable-uac.py
+++ b/test/win/gyptest-link-enable-uac.py
@@ -68,8 +68,8 @@ if sys.platform == 'win32':
test.fail_test(len(execution_level) != 1)
execution_level = execution_level[0].attributes
test.fail_test(not (
- execution_level.has_key('level') and
- execution_level.has_key('uiAccess') and
+ 'level' in execution_level and
+ 'uiAccess' in execution_level and
execution_level['level'].nodeValue == 'asInvoker' and
execution_level['uiAccess'].nodeValue == 'false'))
@@ -87,8 +87,8 @@ if sys.platform == 'win32':
test.fail_test(len(execution_level) != 1)
execution_level = execution_level[0].attributes
test.fail_test(not (
- execution_level.has_key('level') and
- execution_level.has_key('uiAccess') and
+ 'level' in execution_level and
+ 'uiAccess' in execution_level and
execution_level['level'].nodeValue == 'requireAdministrator' and
execution_level['uiAccess'].nodeValue == 'true'))

Powered by Google App Engine
This is Rietveld 408576698