| OLD | NEW |
| 1 # Copyright 2013 The LUCI Authors. All rights reserved. | 1 # Copyright 2013 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import base64 | 5 import base64 |
| 6 import contextlib | 6 import contextlib |
| 7 import datetime | 7 import datetime |
| 8 import logging | 8 import logging |
| 9 import time | 9 import time |
| 10 import urllib | 10 import urllib |
| 11 | 11 |
| 12 import endpoints | 12 import endpoints |
| 13 import webtest | 13 import webtest |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 yield | 229 yield |
| 230 except AssertionError: | 230 except AssertionError: |
| 231 # Assertion can happen if tests are running on GAE < 1.9.31, where | 231 # Assertion can happen if tests are running on GAE < 1.9.31, where |
| 232 # endpoints bug still exists (and causes webapp guts to raise assertion). | 232 # endpoints bug still exists (and causes webapp guts to raise assertion). |
| 233 # It should be rare (since we are switching to GAE >= 1.9.31), so don't | 233 # It should be rare (since we are switching to GAE >= 1.9.31), so don't |
| 234 # bother to check that assertion was indeed raised. Just skip it if it | 234 # bother to check that assertion was indeed raised. Just skip it if it |
| 235 # did. | 235 # did. |
| 236 pass | 236 pass |
| 237 finally: | 237 finally: |
| 238 self.expected_fail_status = None | 238 self.expected_fail_status = None |
| OLD | NEW |