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