** 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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1348954

Title:
  update Python3 for trusty

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1348954/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to