Author tim.golden
Recipients paul.moore, steve.dower, tim.golden, zach.ware
Date 2018-07-23.07:41:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1532331695.99.0.56676864532.issue34195@psf.upfronthosting.co.za>
In-reply-to
Content
From a fresh build on Win10 with VS2017:

python -munittest -v test.test_ntpath.TestNtpath.test_nt_helpers

gives the following error:

======================================================================
FAIL: test_nt_helpers (test.test_ntpath.TestNtpath)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\work-in-progress\python\cpython\lib\test\test_ntpath.py", line 432, in test_nt_helpers
    self.assertEqual(drive, nt._getvolumepathname(sys.executable))
AssertionError: 'c:\\' != 'C:\\'
- c:\
? ^
+ C:\
? ^


Ad hoc, it appears that:

`sys.executable` gives a lower-case path while `nt._getvolumepathname` gives an upper-case drive letter.

While the test could be trivially fixed, it seems worth investigating a little further to see what's happening inside `nt._getvolumepathname`
History
Date User Action Args
2018-07-23 07:41:36tim.goldensetrecipients: + tim.golden, paul.moore, zach.ware, steve.dower
2018-07-23 07:41:35tim.goldensetmessageid: <1532331695.99.0.56676864532.issue34195@psf.upfronthosting.co.za>
2018-07-23 07:41:35tim.goldenlinkissue34195 messages
2018-07-23 07:41:35tim.goldencreate