Files
Tianon Gravi 4fd6a98a88 Fix "python-pip-requests-ssl" test to no longer "import pip"
(https://blog.python.org/2018/04/pip-10-has-been-released.html)

> In addition, the previously announced reorganisation of pip's internals has now taken place. Unless you are the author of code that imports the pip module (or a user of such code), this change will not affect you. If you are affected, please report the issue to the author of the offending code (refer them to https://mail.python.org/pipermail/distutils-sig/2017-October/031642.html for the details of the announcement).
2018-04-16 12:53:15 -07:00

7 lines
184 B
Python

import subprocess, sys
subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'requests'])
import requests
r = requests.get('https://google.com')
assert(r.status_code == 200)