cffi_tests.test_version:test_pycparser_version
@pytest.mark.skipif('sys.version_info[0] < 3', reason="upstream is python3-only")
def test_pycparser_version():
url = 'https://raw.githubusercontent.com/eliben/pycparser/master/pycparser/__init__.py'
> source = urlopen(url).read().decode('utf8')
../build/extra_tests/cffi_tests/test_version.py:19:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/lib-python/3/urllib/request.py:216: in urlopen
return opener.open(url, data, timeout)
../build/lib-python/3/urllib/request.py:525: in open
response = meth(req, response)
../build/lib-python/3/urllib/request.py:634: in http_response
response = self.parent.error(
../build/lib-python/3/urllib/request.py:563: in error
return self._call_chain(*args)
../build/lib-python/3/urllib/request.py:496: in _call_chain
result = func(*args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <urllib.request.HTTPDefaultErrorHandler object at 0x0000000420263c90>
req = <urllib.request.Request object at 0x0000000420263cc8>
fp = <http.client.HTTPResponse object at 0x00000004202639f0>, code = 429
msg = 'Too Many Requests'
hdrs = <http.client.HTTPMessage object at 0x0000000420263d00>
def http_error_default(self, req, fp, code, msg, hdrs):
> raise HTTPError(req.full_url, code, msg, hdrs, fp)
E urllib.error.HTTPError: HTTP Error 429: Too Many Requests
../build/lib-python/3/urllib/request.py:643: HTTPError
builder: pypy-c-jit-macos-arm64 build #1305+
test: cffi_tests.test_version:test_pycparser_version