Package: py-macaroon-bakery / 1.2.3-1


Package Version Patches format
py-macaroon-bakery 1.2.3-1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
isolate from proxy.patch | (download)

macaroonbakery/tests/ | 6 6 + 0 - 0 !
macaroonbakery/tests/ | 7 7 + 0 - 0 !
2 files changed, 13 insertions(+)

 isolate client tests from any http proxy

Debian's Python packaging tools set http_proxy to a non-existent proxy
to help flush out packages that try to talk to the network during build,
but these tests could previously fail in more normal development
environments too.

improve unknown interaction mock.patch | (download)

macaroonbakery/tests/ | 13 12 + 1 - 0 !
1 file changed, 12 insertions(+), 1 deletion(-)

 improve mock setup for 407-then-unknown test

`test_407_then_unknown_interaction_methods` causes the client to fetch
the possible methods supported by the discharger (because it's told that
it only supports a non-window method).  This is currently unmocked,
which causes the client to actually contact ``.
This fails in Launchpad builds because they run with a restrictive
network setup that doesn't even expose DNS lookups for non-permitted

There isn't really a good way to simulate this without setting up a
similar stunt DNS server (though perhaps installing an
`httmock.all_requests` fallback mock that raises an exception would be a
good idea?), but this seems to be the only failure at the moment.