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 steve.dower
Recipients paul.moore, steve.dower, tim.golden, zach.ware
Date 2016-12-17.00:09:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1481933340.85.0.729517888649.issue28995@psf.upfronthosting.co.za>
In-reply-to
Content
With issue19717, WindowsPath.resolve() now properly resolves the filename using the Windows APIs.

However, this may cause parts of the path to be replaced with their full name when provided as the 8.3 short name. The test was not updated for this:

Traceback (most recent call last):
  File "C:\build\cpython36\lib\test\test_pathlib.py", line 1547, in test_resolve_common
    self._check_resolve_relative(p, P(d, 'foo'), False)
  File "C:\build\cpython36\lib\test\test_pathlib.py", line 1491, in _check_resolve
    self.assertEqual(q, expected)
AssertionError: WindowsPath('C:/Users/steve.dower/AppData/Local/Temp/2/tmptnm6y2cm-dirD/foo') != WindowsPath('C:/Users/STEVE~1.DOW/AppData/Local/Temp/2/tmptnm6y2cm-dirD/foo')

We should make sure the test is referring to the same file rather than doing a direct path comparison. Maybe write a UUID into a file and read it out?
History
Date User Action Args
2016-12-17 00:09:00steve.dowersetrecipients: + steve.dower, paul.moore, tim.golden, zach.ware
2016-12-17 00:09:00steve.dowersetmessageid: <1481933340.85.0.729517888649.issue28995@psf.upfronthosting.co.za>
2016-12-17 00:09:00steve.dowerlinkissue28995 messages
2016-12-17 00:09:00steve.dowercreate