Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

rlib/rvmprof/test/test_file.py::test_same_file

def test_same_file():
        shared = RVMPROF.join('src', 'shared')
        files = get_list_of_files(shared)
        assert files, 'cannot find any C file, probably the directory is wrong?'
        no_matches = []
        print
        for file in files:
            path = file.relto(shared)
            url = github_raw_file("vmprof/vmprof-python", "src/%s" % path)
>           source = urllib2.urlopen(url).read()

rlib/rvmprof/test/test_file.py:33: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python2.7/urllib2.py:154: in urlopen
    return opener.open(url, data, timeout)
/usr/local/lib/python2.7/urllib2.py:435: in open
    response = meth(req, response)
/usr/local/lib/python2.7/urllib2.py:548: in http_response
    'http', request, response, code, msg, hdrs)
/usr/local/lib/python2.7/urllib2.py:473: in error
    return self._call_chain(*args)
/usr/local/lib/python2.7/urllib2.py:407: in _call_chain
    result = func(*args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <urllib2.HTTPDefaultErrorHandler instance at 0xffff812370f0>
req = <urllib2.Request instance at 0xffff81237870>
fp = <addinfourl at 281472848423104 whose fp = <socket._fileobject object at 0xffff8124f050>>
code = 429, msg = 'Too Many Requests'
hdrs = <httplib.HTTPMessage instance at 0xffff8124e370>

    def http_error_default(self, req, fp, code, msg, hdrs):
>       raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
E       HTTPError: HTTP Error 429: Too Many Requests

/usr/local/lib/python2.7/urllib2.py:556: HTTPError
---------- Captured stdout call ----------

src/shared/unwind/vmprof_unwind.h matches
src/shared/msiinttypes/inttypes.h matches
 (somefailed=True in rlib/rvmprof/test/test_file.py)
builder: rpython-linux-aarch64 build #560+
test: rlib/rvmprof/test/test_file.py::test_same_file