Files
deb-python-eventlet/tests/patcher/shared_import_socket.py
Sergey Shepelev b7b357189d test_import_patched_defaults bended to play with pyopenssl>=16.1.0
Basically this patch replaces urllib with custom module that is guaranteed not imported before patching.
https://github.com/eventlet/eventlet/issues/362

More general issue here https://github.com/eventlet/eventlet/issues/368
2016-12-31 20:50:04 +03:00

8 lines
170 B
Python

import os
import socket
__test__ = False
_ = socket # mask unused import error
# prevent accidental imports
assert os.environ.get('eventlet_test_in_progress') == 'yes'