[Python-checkins] cpython: Issue #18401: Fix test_pdb if $HOME is not set

Terry Reedy tjreedy at udel.edu
Sat Sep 10 03:15:15 EDT 2016


On 9/10/2016 1:57 AM, victor.stinner wrote:
> https://hg.python.org/cpython/rev/09c730db1aac
> changeset:   103553:09c730db1aac
> user:        Victor Stinner <victor.stinner at gmail.com>
> date:        Fri Sep 09 22:56:54 2016 -0700
> summary:
>   Issue #18401: Fix test_pdb if $HOME is not set
>
> HOME is not set on Windows for example.

On Windows, HOME is spelled USERPROFILE or ,HOMEDRIVE + HOMEPATH.  These 
are set by default on Windows.  The OS specific os.path.expanduser('~') 
deals with this difference.  I don't know what you are testing exactly, 
but I believe cross-platform modules should use the latter instead of 
the *NIX-specific HOME.



More information about the Python-checkins mailing list