Removed skip_under_xvfb def from decorators.py draft
authornagma <nagmakapoor@gmail.com>
Tue, 15 Mar 2016 12:45:49 -0400
changeset 340544 86c4362d57fbe5d08ff541c80588a48615396523
parent 340543 502458b94c2e3222d0f396e36790580d20eddf26
child 516222 0c959d585022036a78da8a8cbf0c1977291af1e2
push id13005
push userbmo:nagmakapoor@gmail.com
push dateTue, 15 Mar 2016 16:48:45 +0000
milestone48.0a1
Removed skip_under_xvfb def from decorators.py MozReview-Commit-ID: A84a80ROTYS
testing/firefox-ui/harness/firefox_ui_harness/decorators.py
--- a/testing/firefox-ui/harness/firefox_ui_harness/decorators.py
+++ b/testing/firefox-ui/harness/firefox_ui_harness/decorators.py
@@ -1,14 +1,11 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this file,
 # You can obtain one at http://mozilla.org/MPL/2.0/.
 
 from marionette import SkipTest
 import os
 
-
-def skip_under_xvfb(target):
-    def wrapper(self, *args, **kwargs):
-        if os.environ.get('MOZ_XVFB'):
-            raise SkipTest("Skipping due to running under xvfb")
-        return target(self, *args, **kwargs)
-    return wrapper
+def wrapper(self, *args, **kwargs):
+    if os.environ.get('MOZ_XVFB'):
+        raise SkipTest("Skipping due to running under xvfb")
+return wrapper