[Bug 1348954] Re: update Python3 for trusty
Matthias Klose
doko at ubuntu.com
Wed Oct 14 15:09:06 UTC 2015
** Description changed:
update Python3 for trusty.
Rationale: the LTS was released with 3.4.0, the first 3.4 release which
certainly had some issues. The idea is to update the python3.4 packages
to the version found in 15.04 (vivid), which currently doesn't have any
outstanding issues. A test rebuild of the trusty main component was
done without showing any regressions during the package builds.
http://people.ubuntuwire.org/~wgrant/rebuild-ftbfs-test/test-rebuild-20150317-trusty.html
http://people.ubuntuwire.org/~wgrant/rebuild-ftbfs-test/test-rebuild-20150501-updates-trusty.html
To validate this SRU, I'm proposing to use the results from the test
rebuild, plus evaluating the testsuite results of the python3.4 package
itself.
+
+ To test the python3 behaviour for certificate verification, use
+ urllib.request.urlopen. requests does it's own certificate verification.
+
+ import urllib.request
+ sites = [
+ 'https://expired.badssl.com/',
+ 'https://wrong.host.badssl.com/',
+ 'https://self-signed.badssl.com/'
+ ]
+
+ for site in sites:
+ try:
+ urllib.request.urlopen(site)
+ print("OK", site)
+ except:
+ print("FAIL", site)
+
+ Edit /etc/python3.4/cert-verification.conf to test both behaviours
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/1348954
Title:
update Python3 for trusty
Status in python3-defaults package in Ubuntu:
New
Status in python3-stdlib-extensions source package in Trusty:
Fix Released
Status in python3.4 source package in Trusty:
Triaged
Bug description:
update Python3 for trusty.
Rationale: the LTS was released with 3.4.0, the first 3.4 release
which certainly had some issues. The idea is to update the python3.4
packages to the version found in 15.04 (vivid), which currently
doesn't have any outstanding issues. A test rebuild of the trusty
main component was done without showing any regressions during the
package builds.
http://people.ubuntuwire.org/~wgrant/rebuild-ftbfs-test/test-rebuild-20150317-trusty.html
http://people.ubuntuwire.org/~wgrant/rebuild-ftbfs-test/test-rebuild-20150501-updates-trusty.html
To validate this SRU, I'm proposing to use the results from the test
rebuild, plus evaluating the testsuite results of the python3.4
package itself.
To test the python3 behaviour for certificate verification, use
urllib.request.urlopen. requests does it's own certificate
verification.
import urllib.request
sites = [
'https://expired.badssl.com/',
'https://wrong.host.badssl.com/',
'https://self-signed.badssl.com/'
]
for site in sites:
try:
urllib.request.urlopen(site)
print("OK", site)
except:
print("FAIL", site)
Edit /etc/python3.4/cert-verification.conf to test both behaviours
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1348954/+subscriptions
More information about the foundations-bugs
mailing list