[Python-modules-team] Bug#884432: pytest-httpbin: test_httpbin_accepts_lots_of_get_requests_in_single_session FAILED

Daniel Stender debian at danielstender.com
Fri Dec 15 08:00:30 UTC 2017


Source: pytest-httpbin
Version: 0.2.3-1
Severity: serious
Justification: fails to build from source

pytest-httpbin currently FTBFS:
<cut>
tests/test_httpbin.py::test_httpbin_accepts_lots_of_get_requests_in_single_session FAILED

=================================== FAILURES ===================================
_________ test_httpbin_accepts_lots_of_get_requests_in_single_session __________

self = <CallInfo when='call' exception: seek() called during concurrent operation on the same file object>
func = <function <lambda> at 0x7f15929881b8>, when = 'call'

    def __init__(self, func, when):
        #: context of invocation: one of "setup", "call",
        #: "teardown", "memocollect"
        self.when = when
        self.start = time()
        try:
>           self.result = func()

/usr/lib/python2.7/dist-packages/_pytest/runner.py:196: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python2.7/dist-packages/_pytest/runner.py:182: in <lambda>
    return CallInfo(lambda: ihook(item=item, **kwds), when=when)
/usr/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py:745: in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py:339: in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py:334: in <lambda>
    _MultiCall(methods, kwargs, hook.spec_opts).execute()
/usr/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py:613: in execute
    return _wrapped_call(hook_impl.function(*args), self.execute)
/usr/lib/python2.7/dist-packages/_pytest/vendored_packages/pluggy.py:250: in _wrapped_call
    wrap_controller.send(call_outcome)
/usr/lib/python2.7/dist-packages/_pytest/capture.py:139: in pytest_runtest_call
    self.suspendcapture_item(item, "call")
/usr/lib/python2.7/dist-packages/_pytest/capture.py:156: in suspendcapture_item
    out, err = self.suspendcapture(in_=in_)
/usr/lib/python2.7/dist-packages/_pytest/capture.py:97: in suspendcapture
    outerr = cap.readouterr()
/usr/lib/python2.7/dist-packages/_pytest/capture.py:327: in readouterr
    self.err.snap() if self.err is not None else "")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <FDCapture 2 oldfd=6>

    def snap(self):
        f = self.tmpfile
>       f.seek(0)
E       IOError: seek() called during concurrent operation on the same file object

/usr/lib/python2.7/dist-packages/_pytest/capture.py:375: IOError
--------------------------- Captured stderr teardown ---------------------------
127.0.0.1 - - [15/Dec/2017 07:58:18] "GET /get HTTP/1.1" 200 302
127.0.0.1 - - [15/Dec/2017 07:58:18] "GET /get HTTP/1.1" 200 302
127.0.0.1 - - [15/Dec/2017 07:58:18] "GET /get HTTP/1.1" 200 302
127.0.0.1 - - [15/Dec/2017 07:58:18] "GET /get HTTP/1.1" 200 302
127.0.0.1 - - [15/Dec/2017 07:58:18] "GET /get HTTP/1.1" 200 302
127.0.0.1 - - [15/Dec/2017 07:58:18] "GET /get HTTP/1.1" 200 302
127.0.0.1 - - [15/Dec/2017 07:58:18] "GET /get HTTP/1.1" 200 302
127.0.0.1 - - [15/Dec/2017 07:58:18] "GET /get HTTP/1.1" 200 302
127.0.0.1 - - [15/Dec/2017 07:58:18] "GET /get HTTP/1.1" 200 302
127.0.0.1 - - [15/Dec/2017 07:58:18] "GET /get HTTP/1.1" 200 302
</cut>

DS

-- System Information:
Debian Release: 9.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)



More information about the Python-modules-team mailing list