# tests for pycurl-7.44.1-py39h8f2d780_1 (this is a generated file); print('===== testing package: pycurl-7.44.1-py39h8f2d780_1 ====='); print('running run_test.py'); # --- run_test.py (begin) --- import curl import pycurl try: from cStringIO import StringIO as BytesIO except: from io import BytesIO buf = BytesIO() c = pycurl.Curl() c.setopt(c.URL, 'https://repo.anaconda.com/') c.setopt(c.WRITEFUNCTION, buf.write) c.perform() print(buf.getvalue()) assert b'Anaconda, Inc.' in buf.getvalue() buf.close() # --- run_test.py (end) --- print('===== pycurl-7.44.1-py39h8f2d780_1 OK ====='); print("import: 'curl'") import curl print("import: 'pycurl'") import pycurl