(url, fail_ok=False)
| 94 | client = HTTPClient(SimpleAsyncHTTPClient) |
| 95 | |
| 96 | def fetch(url, fail_ok=False): |
| 97 | try: |
| 98 | return client.fetch(get_url(url)) |
| 99 | except HTTPError as e: |
| 100 | if not (fail_ok and e.code == 599): |
| 101 | raise |
| 102 | |
| 103 | # Make two processes exit abnormally |
| 104 | fetch("/?exit=2", fail_ok=True) |
no outgoing calls
no test coverage detected