Debian Codegraph @

tests/isolated/green_httplib_doesnt_change_original_module.py

raw
1 if __name__ == '__main__':
2 # Importing eventlet.green.httplib 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.httplib # noqa
7 assert id(http.client) == original_id
8 print('pass')