diff options
author | Kagami Sascha Rosylight <saschanaz@outlook.com> | 2020-06-21 13:19:04 +0200 |
---|---|---|
committer | Kagami Sascha Rosylight <saschanaz@outlook.com> | 2020-06-21 13:19:04 +0200 |
commit | 7a655410a93ca2da65df182d2f4cf9bf27f96a3d (patch) | |
tree | 6d28f72cbe769a9741b313a42334350dbdbfb8f3 /etc | |
parent | 2a2e037a4d559c5c98420da3b6eeefa6c3d5037c (diff) | |
download | servo-7a655410a93ca2da65df182d2f4cf9bf27f96a3d.tar.gz servo-7a655410a93ca2da65df182d2f4cf9bf27f96a3d.zip |
Revert mock.py change
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/taskcluster/mock.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/etc/taskcluster/mock.py b/etc/taskcluster/mock.py index 37c4b9cccb6..107a8380f1a 100755 --- a/etc/taskcluster/mock.py +++ b/etc/taskcluster/mock.py @@ -20,7 +20,6 @@ Run the decision task with fake Taskcluster APIs, to catch Python errors before import os import sys from unittest.mock import MagicMock -import decision_task class TaskclusterRestFailure(Exception): @@ -39,14 +38,13 @@ class Index: stringDate = str slugId = b"<new id>".lower sys.exit = Queue = fromNow = MagicMock() -sys.modules["taskcluster"] = sys.modules[__name__] sys.dont_write_bytecode = True os.environ.update(**{k: k for k in "TASK_ID TASK_OWNER TASK_SOURCE GIT_URL GIT_SHA".split()}) os.environ["GIT_REF"] = "refs/heads/auto" os.environ["TASKCLUSTER_ROOT_URL"] = "https://community-tc.services.mozilla.com" os.environ["TASKCLUSTER_PROXY_URL"] = "http://taskcluster" os.environ["NEW_AMI_WORKER_TYPE"] = "-" - +import decision_task # noqa: E402 decision_task.decisionlib.subprocess = MagicMock() print("\n# Push:") |