tests/isolated/green_http_doesnt_change_original_module.py
raw| 1 | if __name__ == '__main__': |
| 2 | # Importing eventlet.green.http.client after http.client was already imported |
| 3 | # used to change the original http/http.client, that was breaking things. |
| 4 | import http.client |
| 5 | original_id = id(http.client) |
| 6 | import eventlet.green.http.client # noqa |
| 7 | assert id(http.client) == original_id |
| 8 | print('pass') |