| Index: third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github.py
|
| diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github.py b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github.py
|
| index e3f6b73a8967e2d1c37e6a508dec9dc2fd9e638c..4cc6fb82e0dc6fa747cb8bd94ea4b99e6acba51b 100644
|
| --- a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github.py
|
| +++ b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github.py
|
| @@ -96,11 +96,12 @@ class WPTGitHub(object):
|
| raise Exception('PR could not be merged: %d' % pull_request_number)
|
|
|
| def delete_remote_branch(self, remote_branch_name):
|
| + # TODO(jeffcarp): Unit test this method
|
| path = '/repos/w3c/web-platform-tests/git/refs/heads/%s' % remote_branch_name
|
| data, status_code = self.request(path, method='DELETE')
|
|
|
| - if status_code != 200:
|
| + if status_code != 204:
|
| # TODO(jeffcarp): Raise more specific exception (create MergeError class?)
|
| - raise Exception('PR could not be merged')
|
| + raise Exception('Received non-204 status code attempting to delete remote branch: {}'.format(status_code))
|
|
|
| return data
|
|
|