diff -Nru libwww-mechanize-shell-perl-0.59/debian/changelog libwww-mechanize-shell-perl-0.59/debian/changelog --- libwww-mechanize-shell-perl-0.59/debian/changelog 2020-05-07 19:34:15.000000000 +0200 +++ libwww-mechanize-shell-perl-0.59/debian/changelog 2021-12-06 16:34:19.000000000 +0100 @@ -1,3 +1,10 @@ +libwww-mechanize-shell-perl (0.59-1ubuntu1) jammy; urgency=medium + + * Unset HTTP proxy environment variables when running tests against local + HTTP server (LP: #1953344) + + -- Olivier Gayot Mon, 06 Dec 2021 16:34:19 +0100 + libwww-mechanize-shell-perl (0.59-1) unstable; urgency=medium * Import upstream version 0.59. diff -Nru libwww-mechanize-shell-perl-0.59/debian/control libwww-mechanize-shell-perl-0.59/debian/control --- libwww-mechanize-shell-perl-0.59/debian/control 2020-05-07 19:34:15.000000000 +0200 +++ libwww-mechanize-shell-perl-0.59/debian/control 2021-12-06 16:27:22.000000000 +0100 @@ -1,5 +1,6 @@ Source: libwww-mechanize-shell-perl -Maintainer: Debian Perl Group +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Debian Perl Group Uploaders: Damyan Ivanov , gregor herrmann , Ansgar Burchardt , diff -Nru libwww-mechanize-shell-perl-0.59/debian/patches/series libwww-mechanize-shell-perl-0.59/debian/patches/series --- libwww-mechanize-shell-perl-0.59/debian/patches/series 2020-05-07 19:34:15.000000000 +0200 +++ libwww-mechanize-shell-perl-0.59/debian/patches/series 2021-12-06 12:01:11.000000000 +0100 @@ -1 +1,2 @@ spelling-errors +unset-http-proxy-for-tests diff -Nru libwww-mechanize-shell-perl-0.59/debian/patches/unset-http-proxy-for-tests libwww-mechanize-shell-perl-0.59/debian/patches/unset-http-proxy-for-tests --- libwww-mechanize-shell-perl-0.59/debian/patches/unset-http-proxy-for-tests 1970-01-01 01:00:00.000000000 +0100 +++ libwww-mechanize-shell-perl-0.59/debian/patches/unset-http-proxy-for-tests 2021-12-06 14:39:43.000000000 +0100 @@ -0,0 +1,30 @@ +Description: Unset HTTP proxy env variables when running tests + Some tests would fail when run in an environment that has HTTP proxy + environment variables. For the tests that failed, we now unset the HTTP proxy + variables. +Author: Olivier Gayot +Bug-Ubuntu: https://launchpad.net/bugs/1953344 +Last-Update: 2021-12-06 + +--- libwww-mechanize-shell-perl-0.59.orig/t/13-command-au.t ++++ libwww-mechanize-shell-perl-0.59/t/13-command-au.t +@@ -18,6 +18,8 @@ use Test::More tests => 4; + + use WWW::Mechanize::Shell; + ++delete @ENV{qw(HTTP_PROXY http_proxy CGI_HTTP_PROXY)}; ++ + my $server = Test::HTTP::LocalServer->spawn(); + + my $user = 'foo'; +--- libwww-mechanize-shell-perl-0.59.orig/t/18-browser-autosync.t ++++ libwww-mechanize-shell-perl-0.59/t/18-browser-autosync.t +@@ -25,6 +25,8 @@ BEGIN { + }; + use WWW::Mechanize::Shell; + ++delete @ENV{qw(HTTP_PROXY http_proxy CGI_HTTP_PROXY)}; ++ + my $browser_synced; + { no warnings 'redefine'; + *WWW::Mechanize::Shell::sync_browser = sub {