[Python-modules-team] Bug#903989: vcr.py: autopkgtest needs update for python3.7 in supported versions

Paul Gevers elbrus at debian.org
Tue Jul 17 21:14:59 BST 2018


Source: vcr.py
Version: 1.11.1-1
User: debian-ci at lists.debian.org
Usertags: needs-update

Dear maintainers,

Currently the python3.7 transition¹ is going on, which means that
python3.7 is added to the supported python3 versions. Your package isn't
listed on the transition package, which means it isn't on the radar for
binNMU. However, since python3-defaults added python3.7 support, your
autopkgtest has been failing (first because it needed a rebuild
python-gevent, now it looks genuine). I copied the error below.

Could you please investigate? I can imagine that the real issue is that
your package fails currently to work with python3.7 which is more
serious.

Paul

¹ https://release.debian.org/transitions/html/python3.7.html

https://ci.debian.net/data/autopkgtest/testing/amd64/v/vcr.py/624141/log.gz

=================================== FAILURES
===================================
______________________ test_use_as_decorator_on_coroutine
______________________

self = <vcr.cassette.CassetteContextDecorator object at 0x7f0950fb7630>
fn = <function
CassetteContextDecorator._execute_function.<locals>.handle_function at
0x7f095229d840>

    def _handle_generator(self, fn):
        """Wraps a generator so that we're inside the cassette context
for the
            duration of the generator.
            """
        with self as cassette:
            coroutine = fn(cassette)
            # We don't need to catch StopIteration. The caller (Tornado's
            # gen.coroutine, for example) will handle that.
            to_yield = next(coroutine)
            while True:
                try:
                    to_send = yield to_yield
                except Exception:
                    to_yield = coroutine.throw(*sys.exc_info())
                else:
>                   to_yield = coroutine.send(to_send)
E                   StopIteration

vcr/cassette.py:137: StopIteration

The above exception was the direct cause of the following exception:

    def test_use_as_decorator_on_coroutine():
        original_http_connetion = httplib.HTTPConnection

        @Cassette.use(inject=True)
        def test_function(cassette):
            assert httplib.HTTPConnection.cassette is cassette
            assert httplib.HTTPConnection is not original_http_connetion
            value = yield 1
            assert value == 1
            assert httplib.HTTPConnection.cassette is cassette
            assert httplib.HTTPConnection is not original_http_connetion
            value = yield 2
            assert value == 2

        coroutine = test_function()
        value = next(coroutine)
        while True:
            try:
>               value = coroutine.send(value)
E               RuntimeError: generator raised StopIteration

tests/unit/test_cassettes.py:291: RuntimeError

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/python-modules-team/attachments/20180717/79129223/attachment.sig>


More information about the Python-modules-team mailing list