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 0xfffea5c9c9b0>
req = <urllib2.Request instance at 0xfffea5ba04b0>
fp = <addinfourl at 281469167271520 whose fp = <socket._fileobject object at 0xfffea5ba75d0>>
code = 429, msg = 'Too Many Requests'
hdrs = <httplib.HTTPMessage instance at 0xfffea5baf910>

    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
src/shared/msiinttypes/stdint.h matches
src/shared/libbacktrace/backtrace-supported.h matches
src/shared/libbacktrace/elf.c matches
src/shared/libbacktrace/dwarf2.h matches
src/shared/libbacktrace/atomic.c matches
 (somefailed=True in rlib/rvmprof/test/test_file.py)
builder: rpython-linux-aarch64 build #559+
test: rlib/rvmprof/test/test_file.py::test_same_file