On 06.01.2014 05:12, Donald Stufft wrote:
ensurepip uses —no-index so it shouldn’t be hitting the network at all.

Do you have a test to ensure that ensurepip doesn't try to use network connections? You could e.g. mock socket.create_connection() and socket.socket() in a custom socket module. The subprocess makes it a little bit more complicated to test its behavior.

Christian
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to