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')) |