Ronald Oussoren added the comment:

This also affects 2.7, and the patch doesn't work there.

It does work when I add the call to os.putenv at module scope before (before 
importing ssl), but I don't really like that. 

It is probably necessary to do it like this though, the code that checks if the 
keychain integration is enabled caches its results and which means my patch 
only works accidentally (based on the order tests happen to be run in). 

I've attached a 3th version of the patch that also works with 2.7 (that is, 
after manually applying the patch). I'm not too happy about it though, the 
module now changes the environment of the entire test suite (on OSX).

Annoyingly the 3th version does *not* work with 'make test' for python 3.3 , 
even when I change os.environ. I haven't tried to debug that yet.

I'm disabling the CAcert root key in my keychain for no to be able to test 
patches without running into this issue.

----------
versions: +Python 2.7
Added file: http://bugs.python.org/file26962/issue15740-3.txt

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15740>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to