This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tim.golden
Recipients paul.moore, steve.dower, tim.golden, zach.ware
Date 2018-07-23.10:09:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1532340568.79.0.56676864532.issue34195@psf.upfronthosting.co.za>
In-reply-to
Content
import nt, sys; assert sys.executable.startswith(nt._getvolumepathname(sys.executable))

This code fails only when run from the python.bat as created by pcbuild\build.bat. The obvious difference is that the batch file sets PYTHONHOME which, presumably, is used to form sys.executable (haven't checked the startup code yet).

The docs for GetVolumePathName [*] don't specify that the drive letter of the path returned will be upper-case, but it doesn't seem unlikely.

So... it looks as though the test is unduly sensitive to case-differences in the face of something like PYTHONHOME which affects the way in which sys.executable is formed.

Phew! I'll put a test patch together later...

[*] https://docs.microsoft.com/en-us/windows/desktop/api/fileapi/nf-fileapi-getvolumepathnamew
History
Date User Action Args
2018-07-23 10:09:28tim.goldensetrecipients: + tim.golden, paul.moore, zach.ware, steve.dower
2018-07-23 10:09:28tim.goldensetmessageid: <1532340568.79.0.56676864532.issue34195@psf.upfronthosting.co.za>
2018-07-23 10:09:28tim.goldenlinkissue34195 messages
2018-07-23 10:09:28tim.goldencreate