Author izbyshev
Recipients ammar2, izbyshev, paul.moore, steve.dower, tim.golden, zach.ware
Date 2017-01-27.15:04:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1485529468.61.0.861314913103.issue29326@psf.upfronthosting.co.za>
In-reply-to
Content
I've encountered this issue too. (FYI, the official 3.6.0 embeddable zip from https://www.python.org/downloads/windows/ does contain a blank line in its ._pth, so all its users get an invalid entry in sys.path).

The patch is attached. I couldn't fix tests in more straightforward way because both of them were broken:
* Both of them generated ._pth with 'import site'
* Both of them checked for zero exit code instead of non-zero one, but both passed because predicates in sys.exit() were incorrect

I've strengthened the check in 'nosite' test because it is trivial to fully emulate sys.path calculation logic in this case. I've preserved weaker checks in the other test because I didn't want to emulate site.py logic.
History
Date User Action Args
2017-01-27 15:04:28izbyshevsetrecipients: + izbyshev, paul.moore, tim.golden, zach.ware, steve.dower, ammar2
2017-01-27 15:04:28izbyshevsetmessageid: <1485529468.61.0.861314913103.issue29326@psf.upfronthosting.co.za>
2017-01-27 15:04:28izbyshevlinkissue29326 messages
2017-01-27 15:04:28izbyshevcreate