Steve Dower <steve.do...@python.org> added the comment:

I like the patch, but I'm not sure all the tests are properly preserving the 
real value of USERPROFILE.

Modifying this value could have a real impact on the rest of the process, so we 
should be very careful to undo it regardless of test result. (Modifying HOME is 
not a as big a deal since, as you point out, it's not "real" ;) )

Also, it's probably better to get the current value and check against that, 
rather than setting it to a known value. One day we might do the right thing 
and switch expanduser() from the environment variables to the correct API, 
which would break the test.

----------

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

Reply via email to