[py] fix unit test for 2.7.14
@@ -87,8 +87,7 @@ class Options(ChromeOptions):
"""
capabilities = ChromeOptions.to_capabilities(self)
capabilities.update(DesiredCapabilities.OPERA)
- opera_options = capabilities[self.KEY] = \
- capabilities.pop(ChromeOptions.KEY)
+ opera_options = capabilities[self.KEY] = capabilities.pop(ChromeOptions.KEY, None)
if self.android_package_name:
opera_options["androidPackage"] = self.android_package_name
